Commit 1e3c8ccb authored by Guido van Rossum's avatar Guido van Rossum

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.
parent 1bf4e931
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment