cpython/Python
Barry Warsaw 035574d755 Added Py_UseClassExceptionsFlag, the variable containing the state of
the -X command line option.

Py_Initialize(): Handle the two phase initialization of the built-in
module.

Py_Finalize(): Handle the two phase finalization of the built-in
module.

parse_syntax_error(): New function which parses syntax errors that
PyErr_Print() will catch.  This correctly parses such errors
regardless of whether PyExc_SyntaxError is an old-style string
exception or new-fangled class exception.

PyErr_Print(): Many changes:

    1. Normalize the exception.

    2. Handle SystemExit exceptions which might be class based.  Digs
       the exit code out of the "code" attribute.  String based
       SystemExit is handled the same as before.

    3. Handle SyntaxError exceptions which might be class based.  Digs
       the various information bits out of the instance's attributes
       (see parse_syntax_error() for details).  String based
       SyntaxError still works too.

    4. Don't write the `:' after the exception if the exception is
       class based and has an empty string str() value.
1997-08-29 22:07:17 +00:00
..
atof.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
bltinmodule.c Two new built-in functions: issubclass() and isinstance(). Both take 1997-08-22 21:14:38 +00:00
ceval.c eval_code2(), set_exc_info(): Call PyErr_NormalizeException() the 1997-08-28 22:36:40 +00:00
compile.c Cprrect stuoid tyops -- was comparing variabes with themselves because 1997-08-29 17:12:43 +00:00
dup2.c MPW changes 1994-08-29 10:43:12 +00:00
errors.c PyErr_NoMemory(): If the pre-instantiated memory exception is non-null 1997-08-29 21:54:35 +00:00
fmod.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
frozen.c Oops -- this contains frozen bytecode, but it was Python 1.4 bytecode! 1997-07-19 21:54:24 +00:00
frozenmain.c Keep gcc -Wall happy 1997-08-15 02:52:08 +00:00
getargs.c Checkin of Jack's buffer mods. 1997-05-05 22:15:02 +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 Oops, missed some renamings. 1997-05-07 23:51:07 +00:00
getopt.c (Jack:) Don't define TRUE and FALSE if already defined. 1997-04-11 19:19:46 +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 Oops, missed some renamings. 1997-05-07 23:51:07 +00:00
hypot.c *** empty log message *** 1996-08-29 18:10:41 +00:00
import.c Keep gcc -Wall happy 1997-08-15 02:52:08 +00:00
importdl.c set sharedlib extensions properly for NeXT (Ted Horst) 1997-08-16 14:38:09 +00:00
importdl.h Removed some variables that are used to exchange data between import.c and 1997-07-21 14:54:36 +00:00
Makefile.in frozenmain.c is now also in the library, 1997-07-19 21:59:47 +00:00
marshal.c Plugged a leak. (The same as the one plugged in compile.c -- forgot 1997-07-26 23:30:18 +00:00
memmove.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
modsupport.c Removed fatal errors from Py_Initmodule4() (and thus from 1997-08-02 03:07:46 +00:00
mystrtoul.c Oops, missed some renamings. 1997-05-07 23:51:07 +00:00
pyfpe.c New form of PyFPE_END_PROTECT macro. 1997-03-14 04:32:50 +00:00
pystate.c Added missing newline to warning msg 1997-08-21 02:28:19 +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 Added Py_UseClassExceptionsFlag, the variable containing the state of 1997-08-29 22:07:17 +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 Quickly renamed the remaining files -- this directory is done. 1997-04-29 20:08:16 +00:00
sysmodule.c Remove unised variable 1997-08-07 19:22:48 +00:00
thread.c DG/UX thread patches (Ross Andrus) 1997-05-22 20:41:59 +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 New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_pthread.h Add default case (standard conformance) to avoid piling up 1997-06-02 22:25:45 +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