]> granicus.if.org Git - python/commitdiff
As suggested by Toby Dickenson, setting ob_type to NULL in
authorGuido van Rossum <guido@python.org>
Thu, 21 Sep 2000 16:25:33 +0000 (16:25 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 21 Sep 2000 16:25:33 +0000 (16:25 +0000)
_Py_Dealloc(), is a bad idea (and always was!).  So let's drop it.

Objects/object.c

index 33239068045b58038758242c87ee96173dab4fac..4f395ff357129ef010cc8984159634b1979c9f66 100644 (file)
@@ -978,10 +978,6 @@ _Py_Dealloc(PyObject *op)
 {
        destructor dealloc = op->ob_type->tp_dealloc;
        _Py_ForgetReference(op);
-#ifndef WITH_CYCLE_GC
-       if (_PyTrash_delete_nesting < PyTrash_UNWIND_LEVEL-1)
-               op->ob_type = NULL;
-#endif
        (*dealloc)(op);
 }