• Barry Warsaw's avatar
    Several changes that Python carry on in the face of errors in the · 98b6246c
    Barry Warsaw yazdı
    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.
    98b6246c
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...
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...
pyfpe.c Loading commit data...
pystate.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...