Guido van Rossum
6f25618be5
Add PyOS_getsig() and PyOS_setsig() -- wrappers around signal() or
...
sigaction() (if HAVE_SIGACTION is defined).
2000-09-16 16:32:19 +00:00
Jack Jansen
a454ebd924
Added B format char to Py_BuildValue (same as b,h,i, but makes
...
bgen-generated code work).
2000-09-15 12:52:19 +00:00
Jack Jansen
b763b9d9d5
Cast UCHAR_MAX to int before doing the comparison for overflow of the
...
B format char.
2000-09-15 12:51:01 +00:00
Fred Drake
fd1f1be98d
com_continue_stmt(): Improve error message when continue is found
...
in a try statement in a loop.
This is related to SourceForge bug #110830 .
2000-09-08 16:31:24 +00:00
Marc-André Lemburg
bbcf2a7c81
This patch hopefully fixes the problem with "es#" and "es" in
...
PyArg_ParseTupleAndKeywords() and closes bug #113807 .
2000-09-08 11:49:37 +00:00
Guido van Rossum
f26cda62b6
The GCC version is loooooooooong; put it on a new line.
2000-09-05 04:40:39 +00:00
Guido van Rossum
f4d189f70b
All right. More uniformity, and extra blank lines.
2000-09-04 01:27:04 +00:00
Guido van Rossum
7ca7b5ac93
Use periods, not semicolons between Copyright and All Rights Reserved.
2000-09-04 01:22:12 +00:00
Vladimir Marangozov
547936c86f
Fix the char* vs. const char* mismatch for the argument of aix_loaderror()
2000-09-04 00:54:56 +00:00
Guido van Rossum
76ad68ae6e
Change the copyright notice according to CNRI's wishes, with
...
BeOpen.com added to the front.
(Even if maybe we won't print this long banner at startup, the string
must still be defined for sys.copyright.)
2000-09-03 03:35:50 +00:00
Fredrik Lundh
1fa0b895ec
changed \x to consume exactly two hex digits. implements PEP-223
...
for 8-bit strings.
2000-09-02 20:11:27 +00:00
Tim Peters
412f246024
PyInterpreterState_New is not thread-safe, and the recent fix to _PyPclose
...
can cause it to get called by multiple threads simultaneously.
Ditto for PyInterpreterState_Delete.
Of the former, the docs say "The interpreter lock need not be held, but may
be held if it is necessary to serialize calls to this function". This
kinda implies it both is and isn't thread-safe.
Of the latter, the docs merely say "The interpreter lock need not be
held.", and the clause about serializing is absent.
I expect it was *believed* these are both thread-safe, and the bit about
serializing via the global lock was meant as a permission rather than a
caution.
I also expect we've never seen a problem here because the Python core
(prior to the _PyPclose fix) only calls these functions once per run.
The Py_NewInterpreter subsystem exposed by the C API (but not used by
Python itself) also calls them, but that subsystem appears to be very
rarely used.
Whatever, they're both thread-safe now.
2000-09-02 09:16:15 +00:00
Guido van Rossum
8586991099
REMOVED all CWI, CNRI and BeOpen copyright markings.
...
This should match the situation in the 1.6b1 tree.
2000-09-01 23:29:29 +00:00
Vladimir Marangozov
7bd25be508
Cosmetics on Py_Get/SetRecursionLimit (for the style guide)
2000-09-01 11:07:19 +00:00
Jeremy Hylton
b69a27e5b2
code part of patch #100895 by Fredrik Lundh
...
PyErr_Format computes size of buffer needed rather than relying on
static buffer.
2000-09-01 03:49:47 +00:00
Tim Peters
d320c348f8
Revert removal of void from function definition. Guido sez I can take it
...
out again after we complete switching to C++ <wink>. Thanks to Greg Stein
for hitting me.
2000-09-01 03:34:26 +00:00
Jeremy Hylton
b709df3810
refactor __del__ exception handler into PyErr_WriteUnraisable
...
add sanity check to gc: if an exception occurs during GC, call
PyErr_WriteUnraisable and then call Py_FatalEror.
2000-09-01 02:47:25 +00:00
Guido van Rossum
349ff6f7e2
Set the recursion limit to 1000 -- 2500 was not enough, let's be
...
conservative.
2000-09-01 01:52:08 +00:00
Tim Peters
51de6906be
Supply missing prototypes for new Py_{Get,Set}RecursionLimit; fixes compiler wngs;
...
un-analize Get's definition ("void" is needed only in declarations, not defns, &
is generally considered bad style in the latter).
2000-09-01 00:01:58 +00:00
Jeremy Hylton
ee5adfbae6
add user-modifiable recursion_limit
...
ceval.c:
define recurion_limit (static), default value is 2500
define Py_GetRecursionLimit and Py_SetRecursionLimit
raise RuntimeError if limit is exceeded
PC/config.h:
remove plat-specific definition
sysmodule.c:
add sys.(get|set)recursionlimit
2000-08-31 19:23:01 +00:00
Fred Drake
592f2d6c85
_PySys_Init(): When setting up sys.version_info, use #if/#elif.../#endif
...
instead of four #if/#endif blocks. This shortens the
code and improves readability.
2000-08-31 15:21:11 +00:00
Fred Drake
399739f79f
PyOS_CheckStack(): Better ANSI'fy this while we're at it.
2000-08-31 05:52:44 +00:00
Fred Drake
e8de31cbd0
Add a comment explaining the return value of PyOS_CheckStack().
2000-08-31 05:38:39 +00:00
Paul Prescod
e68140dd3c
Better error message with UnboundLocalError
2000-08-30 20:25:01 +00:00
Barry Warsaw
093abe005d
eval_code2(): Guido provides this patch for his suggested elaboration
...
of extended print. If the file object being printed to is None, then
sys.stdout is used.
2000-08-29 04:56:13 +00:00