[Python-checkins] CVS: python/dist/src/Objects object.c,2.124.2.1,2.124.2.2
Fred L. Drake
fdrake@users.sourceforge.net
Thu, 03 May 2001 13:04:51 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv16896
Modified Files:
Tag: release21-maint
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.124.2.1
retrieving revision 2.124.2.2
diff -C2 -r2.124.2.1 -r2.124.2.2
*** object.c 2001/05/03 19:45:34 2.124.2.1
--- object.c 2001/05/03 20:04:49 2.124.2.2
***************
*** 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 ----