[Python-checkins] CVS: python/dist/src/Objects object.c,2.152,2.153

Fred L. Drake fdrake@users.sourceforge.net
Fri, 05 Oct 2001 14:58:13 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv27456/Objects

Modified Files:
	object.c 
Log Message:
PyObject_ClearWeakRefs() is now a real function instead of a function pointer;
the implementation is in Objects/weakrefobject.c.


Index: object.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/object.c,v
retrieving revision 2.152
retrieving revision 2.153
diff -C2 -d -r2.152 -r2.153
*** object.c	2001/09/27 20:30:07	2.152
--- object.c	2001/10/05 21:58:11	2.153
***************
*** 1842,1860 ****
  
  
- /* Hook to clear up weak references only once the _weakref module is
-    imported.  We use a dummy implementation to simplify the code at each
-    call site instead of requiring a test for NULL.
- */
- 
- static void
- empty_clear_weak_refs(PyObject *o)
- {
-     return;
- }
- 
- void (*PyObject_ClearWeakRefs)(PyObject *) = empty_clear_weak_refs;
- 
- 
- 
  /* These methods are used to control infinite recursion in repr, str, print,
     etc.  Container objects that may recursively contain themselves,
--- 1842,1845 ----