[Python-checkins] CVS: python/dist/src/Objects object.c,2.124.4.4,2.124.4.5
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 03 May 2001 12:51:37 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv14259
Modified Files:
Tag: descr-branch
object.c
Log Message:
Get rid of the weakref related code that Fred just purged from the
main trunk.
Index: object.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/object.c,v
retrieving revision 2.124.4.4
retrieving revision 2.124.4.5
diff -C2 -r2.124.4.4 -r2.124.4.5
*** object.c 2001/05/02 21:24:00 2.124.4.4
--- object.c 2001/05/03 19:51:35 2.124.4.5
***************
*** 101,108 ****
op->ob_type = tp;
_Py_NewReference(op);
- if (PyType_SUPPORTS_WEAKREFS(tp)) {
- PyObject **weaklist = PyObject_GET_WEAKREFS_LISTPTR(op);
- *weaklist = NULL;
- }
return op;
}
--- 101,104 ----
***************
*** 124,131 ****
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 ----