cpython/Python
Barry Warsaw 98b6246c0c Several changes that Python carry on in the face of errors in the
initialization of class exceptions.  Specifically:

init_class_exc(): This function now returns an integer status of the
class exception initialization.  No fatal errors in this method now.
Also, use PySys_WriteStderr() when writing error messages.  When an
error occurs in this function, 0 is returned, but the partial creation
of the exception classes is not undone (this happens elsewhere).

Things that could trigger the fallback:

    - exceptions.py fails to be imported (due to syntax error, etc.)

    - one of the exception classes is missing (e.g. due to library
      version mismatch)

    - exception class can't be inserted into __builtin__'s dictionary

    - MemoryError instance can't be pre-allocated

    - some other PyErr_Occurred

newstdexception(): Changed the error message.  This is still a fatal
error because if the string based exceptions can't be created, we
really can't continue.

initerrors(): Be sure to xdecref the .exc field, which might be
non-NULL if class exceptions init was aborted.

_PyBuiltin_Init_2(): If class exception init fails, print a warning
message and reinstate the string based exceptions.
1998-09-14 18:51:11 +00:00
..
Makefile.in Make getversion.o dependent on ../Include/patchlevel.h as well. 1998-08-05 21:33:54 +00:00
atof.c
bltinmodule.c Several changes that Python carry on in the face of errors in the 1998-09-14 18:51:11 +00:00
ceval.c Add the type of the object to the error message about calling a non-function. 1998-08-25 18:16:54 +00:00
compile.c Comment out the print statement about underflow. (This only seems to 1998-08-25 18:22:17 +00:00
dup2.c
errors.c PyErr_SetFromErrnoWithFilename(): New function which supports setting 1998-07-23 16:05:56 +00:00
fmod.c
frozen.c Add primitive test for frozen package. 1998-04-03 21:10:36 +00:00
frozenmain.c Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:46:29 +00:00
getargs.c Patch by Mark Hammond to support 64-bit ints on MS platforms. 1998-08-25 16:07:15 +00:00
getcompiler.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
getcopyright.c
getcwd.c
getmtime.c First part of package support. 1997-09-05 07:33:22 +00:00
getopt.c Fix a bug in this code that made it do the wrong thing when an option 1997-09-30 22:00:13 +00:00
getplatform.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
getversion.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
graminit.c Make first raise argument optional 1998-04-09 21:39:57 +00:00
hypot.c
import.c Mac-specific mod to enable aliases on import paths. 1998-09-14 13:40:53 +00:00
importdl.c Mac-specific mod to enable aliases on import paths. 1998-09-14 13:40:53 +00:00
importdl.h Added declarations for Mac code resource modules (Jack Jansen). 1998-08-06 13:36:43 +00:00
marshal.c When unmarshalling, add test for negative lengths on strings, tuples 1998-06-08 20:27:29 +00:00
memmove.c
modsupport.c Patch by Mark Hammond to support 64-bit ints on MS platforms. 1998-08-25 16:07:15 +00:00
mystrtoul.c Sigh. The hack to enable special treatment for errno on SGI machines 1998-07-07 21:32:53 +00:00
pyfpe.c Restructure the file so that it is never empty. No longer needs 1998-08-25 17:48:25 +00:00
pystate.c /* An extension mechanism to store arbitrary additional per-thread state. 1998-04-10 20:18:25 +00:00
pythonmain.c
pythonrun.c Don't release the interpreter lock around PyParser_ParseFile(). 1998-08-27 19:14:49 +00:00
sigcheck.c
strdup.c
strerror.c
strtod.c
structmember.c Trivial little change: when setting a member to an object, hold the 1998-05-20 22:25:32 +00:00
sysmodule.c Gack. The module doc string is too long for VC++ 5.0. 1998-08-06 03:34:39 +00:00
thread.c Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:46:29 +00:00
thread_cthread.h
thread_foobar.h
thread_lwp.h
thread_nt.h Use _beginthread() and _endthread() in favor of CreateThread() and 1997-08-14 20:12:58 +00:00
thread_os2.h os2 patch by Jeff Rush 1997-11-22 21:53:48 +00:00
thread_pthread.h Apparently on AIX when using gcc you need to call pthread_init() 1998-09-10 03:04:40 +00:00
thread_sgi.h
thread_solaris.h
traceback.c