cpython/Python
Guido van Rossum 0aa9ee65ab Moved the raise logic out of the main interpreter loop to a separate function.
The raise logic has one additional feature: if you raise <class>,
<value> where <value> is not an instance, it will construct an
instance using <value> as argument.  If <value> is None, <class> is
instantiated without arguments.  If <value> is a tuple, it is used as
the argument list.

This feature is intended to make it easier to upgrade code from using
string exceptions to using class exceptions; without this feature,
you'd have to change every raise statement from ``raise X'' to ``raise
X()'' and from ``raise X, y'' to ``raise X(y)''.  The latter is still
the recommended form (because it has no ambiguities about the number
of arguments), but this change makes the transition less painful.
1996-12-10 18:07:35 +00:00
..
Makefile.in
atof.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
bltinmodule.c Add unistd.h to make gcc -Wall happy. 1996-12-10 15:37:36 +00:00
ceval.c Moved the raise logic out of the main interpreter loop to a separate function. 1996-12-10 18:07:35 +00:00
cgensupport.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
compile.c Keep gcc -Wall happy. 1996-12-05 23:27:02 +00:00
dup2.c
errors.c Add const to error and newstring functions 1996-12-10 15:33:34 +00:00
fmod.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
frozen.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
frozenmain.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getargs.c Keep gcc -Wall happy. 1996-12-05 23:27:02 +00:00
getcompiler.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +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 New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getopt.c
getplatform.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getversion.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
graminit.c
hypot.c
import.c Keep gcc -Wall happy. 1996-12-05 23:27:02 +00:00
importdl.c Some extra flags that an HPUX user wants me to add. 1996-12-05 23:15:35 +00:00
importdl.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
marshal.c Better way to handle 64-bit ints, keeping gcc -Wall happy. 1996-12-10 15:39:04 +00:00
memmove.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
modsupport.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
mystrtoul.c Keep gcc -Wall happy. 1996-12-05 23:27:02 +00:00
pythonmain.c
pythonrun.c Keep gcc -Wall happy. 1996-12-05 23:27:02 +00:00
sigcheck.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
strdup.c
strerror.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
strtod.c
structmember.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
sysmodule.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread.c Keep gcc -Wall happy. 1996-12-05 23:27:02 +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 New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_os2.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_pthread.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_sgi.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_solaris.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
traceback.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00