summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-03 20:04:33 (GMT)
committerFred Drake <fdrake@acm.org>2001-05-03 20:04:33 (GMT)
commit6aebded915ac3ca6dcd99ea4bf3dfc47a31bab1e (patch)
tree53a387d71a63bc9c541bd3a98e5d26b15c25414b /Objects/object.c
parentba40ec42c80645ab18ba5603975cfe5146cf025d (diff)
downloadcpython-6aebded915ac3ca6dcd99ea4bf3dfc47a31bab1e.zip
cpython-6aebded915ac3ca6dcd99ea4bf3dfc47a31bab1e.tar.gz
cpython-6aebded915ac3ca6dcd99ea4bf3dfc47a31bab1e.tar.bz2
The weakref support in PyObject_InitVar() as well; this should have come out
at the same time as it did from PyObject_Init() .
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 366d777..2c033f8 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -119,10 +119,6 @@ PyObject_InitVar(PyVarObject *op, PyTypeObject *tp, int size)
op->ob_size = size;
op->ob_type = tp;
_Py_NewReference((PyObject *)op);
- if (PyType_SUPPORTS_WEAKREFS(tp)) {
- PyObject **weaklist = PyObject_GET_WEAKREFS_LISTPTR(op);
- *weaklist = NULL;
- }
return op;
}