• Guido van Rossum's avatar
    Moved the raise logic out of the main interpreter loop to a separate function. · 0aa9ee65
    Guido van Rossum yazdı
    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.
    0aa9ee65
Adı
Son kayıt (commit)
Son güncelleme
..
Makefile.in Loading commit data...
atof.c Loading commit data...
bltinmodule.c Loading commit data...
ceval.c Loading commit data...
cgensupport.c Loading commit data...
compile.c Loading commit data...
dup2.c Loading commit data...
errors.c Loading commit data...
fmod.c Loading commit data...
frozen.c Loading commit data...
frozenmain.c Loading commit data...
getargs.c Loading commit data...
getcompiler.c Loading commit data...
getcopyright.c Loading commit data...
getcwd.c Loading commit data...
getmtime.c Loading commit data...
getopt.c Loading commit data...
getplatform.c Loading commit data...
getversion.c Loading commit data...
graminit.c Loading commit data...
hypot.c Loading commit data...
import.c Loading commit data...
importdl.c Loading commit data...
importdl.h Loading commit data...
marshal.c Loading commit data...
memmove.c Loading commit data...
modsupport.c Loading commit data...
mystrtoul.c Loading commit data...
pythonmain.c Loading commit data...
pythonrun.c Loading commit data...
sigcheck.c Loading commit data...
strdup.c Loading commit data...
strerror.c Loading commit data...
strtod.c Loading commit data...
structmember.c Loading commit data...
sysmodule.c Loading commit data...
thread.c Loading commit data...
thread_cthread.h Loading commit data...
thread_foobar.h Loading commit data...
thread_lwp.h Loading commit data...
thread_nt.h Loading commit data...
thread_os2.h Loading commit data...
thread_pthread.h Loading commit data...
thread_sgi.h Loading commit data...
thread_solaris.h Loading commit data...
traceback.c Loading commit data...