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 split cofnfig.c in 1000 little files :-) 1995-08-04 04:13:00 +00:00
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 MPW changes 1994-08-29 10:43:12 +00:00
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 don't use function prototypes 1995-01-20 16:54:36 +00:00
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 Disable support for access statement 1996-08-12 22:00:53 +00:00
hypot.c *** empty log message *** 1996-08-29 18:10:41 +00:00
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 Allow mac user to set "command line flags" by option-starting python. 1995-07-29 13:53:59 +00:00
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 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 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