Commit 06e224bd authored by Fred Drake's avatar Fred Drake

The weakref support in PyObject_InitVar() as well; this should have come out

at the same time as it did from PyObject_Init() .
parent 64b62441
...@@ -119,10 +119,6 @@ PyObject_InitVar(PyVarObject *op, PyTypeObject *tp, int size) ...@@ -119,10 +119,6 @@ PyObject_InitVar(PyVarObject *op, PyTypeObject *tp, int size)
op->ob_size = size; op->ob_size = size;
op->ob_type = tp; op->ob_type = tp;
_Py_NewReference((PyObject *)op); _Py_NewReference((PyObject *)op);
if (PyType_SUPPORTS_WEAKREFS(tp)) {
PyObject **weaklist = PyObject_GET_WEAKREFS_LISTPTR(op);
*weaklist = NULL;
}
return op; return 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