Add support for the __del__ slot and some refactoring.
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.
Showing
Please register or sign in to comment