• Jeremy Hylton's avatar
    Prevent a NULL pointer from being pushed onto the stack. · c6314892
    Jeremy Hylton yazdı
    It's possible for PyErr_NormalizeException() to set the traceback
    pointer to NULL.  I'm not sure how to provoke this directly from
    Python, although it may be possible.  The error occurs when an
    exception is set using PyErr_SetObject() and another exception occurs
    while PyErr_NormalizeException() is creating the exception instance.
    
    XXX As a result of this change, it's possible for an exception to
    occur but sys.last_traceback to be left undefined.  Not sure if this
    is a problem.
    c6314892
ceval.c 80.6 KB