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 New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
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 MPW changes 1994-08-29 10:43:12 +00:00
errors.c PyErr_SetFromErrnoWithFilename(): New function which supports setting 1998-07-23 16:05:56 +00:00
fmod.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
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 New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getcwd.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
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 *** empty log message *** 1996-08-29 18:10:41 +00:00
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 New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
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 Allow mac user to set "command line flags" by option-starting python. 1995-07-29 13:53:59 +00:00
pythonrun.c Don't release the interpreter lock around PyParser_ParseFile(). 1998-08-27 19:14:49 +00:00
sigcheck.c Quickly renamed the remaining files -- this directory is done. 1997-04-29 20:08:16 +00:00
strdup.c Needed more includes... 1996-08-29 18:10:30 +00:00
strerror.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
strtod.c Always include config.h 1996-08-19 22:12:39 +00:00
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 New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_foobar.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_lwp.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
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 Massive changes for separate thread state management. 1997-05-05 20:56:21 +00:00
thread_solaris.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
traceback.c PyFile_WriteString now returns an error indicator instead of calling 1997-05-22 22:35:47 +00:00