summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-21 16:25:33 (GMT)
committerGuido van Rossum <guido@python.org>2000-09-21 16:25:33 (GMT)
commit1e3c8ccb9b65d0994dd09f8147f87d6affeaa552 (patch)
tree0ad817c07a372bed9090d828c05b04a7e893a57f /Objects/object.c
parent1bf4e93180f766b3013cbc549194cb5584977fac (diff)
downloadcpython-1e3c8ccb9b65d0994dd09f8147f87d6affeaa552.zip
cpython-1e3c8ccb9b65d0994dd09f8147f87d6affeaa552.tar.gz
cpython-1e3c8ccb9b65d0994dd09f8147f87d6affeaa552.tar.bz2
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.
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 3323906..4f395ff 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);
}