Kaydet (Commit) 6aebded9 authored tarafından 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() .
üst ba40ec42
......@@ -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;
}
......
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