[Python-checkins] CVS: python/dist/src/Objects object.c,2.127,2.128
Fred L. Drake
fdrake@users.sourceforge.net
Thu, 03 May 2001 13:04:35 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv16852
Modified Files:
object.c
Log Message:
The weakref support in PyObject_InitVar() as well; this should have come out
at the same time as it did from PyObject_Init() .
Index: object.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/object.c,v
retrieving revision 2.127
retrieving revision 2.128
diff -C2 -r2.127 -r2.128
*** object.c 2001/05/03 19:44:50 2.127
--- object.c 2001/05/03 20:04:33 2.128
***************
*** 120,127 ****
op->ob_type = tp;
_Py_NewReference((PyObject *)op);
- if (PyType_SUPPORTS_WEAKREFS(tp)) {
- PyObject **weaklist = PyObject_GET_WEAKREFS_LISTPTR(op);
- *weaklist = NULL;
- }
return op;
}
--- 120,123 ----