From: Guido van Rossum Date: Thu, 21 Sep 2000 16:25:33 +0000 (+0000) Subject: As suggested by Toby Dickenson, setting ob_type to NULL in X-Git-Tag: v2.0b2~161 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e3c8ccb9b65d0994dd09f8147f87d6affeaa552;p=thirdparty%2FPython%2Fcpython.git As suggested by Toby Dickenson, setting ob_type to NULL in _Py_Dealloc(), is a bad idea (and always was!). So let's drop it. --- diff --git a/Objects/object.c b/Objects/object.c index 33239068045b..4f395ff35712 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -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); }