• Rudi Chen's avatar
    Add support for the __del__ slot and some refactoring. · debf2077
    Rudi Chen authored
    Make sure __del__ methods get assigned to tp_del in new style classes.
    
    Go through an attribute lookup in old style classes. Also, change the
    function calling structure to match CPython's a bit better.
    
    For exceptions thrown in tp_del methods, print a warning and ignore
    them, like CPython does.
    debf2077
typeobject.cpp 114 KB