• Kevin Modzelewski's avatar
    Fix a bunch of destructor stuff · ec637745
    Kevin Modzelewski authored
    First, our implementation of slot_tp_del (what calls Python-level __del__ methods)
    was pretty bad -- it didn't re-incref the object to keep it alive.
    
    Then we had some issues around running destructors at shutdown.  I made this section
    look a bit more like CPython's, but there are still differences.
    ec637745
class_finalization.py 2.1 KB