summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-05 21:58:11 (GMT)
committerFred Drake <fdrake@acm.org>2001-10-05 21:58:11 (GMT)
commitb3f0d349b62e0dbd909fc4012c031b44b4c72916 (patch)
tree426c30ba18bca4136916933c4b17751851d41a71 /Objects/object.c
parent502ed82125e0d11204357bb9bc48f88e8a994bb0 (diff)
downloadcpython-b3f0d349b62e0dbd909fc4012c031b44b4c72916.zip
cpython-b3f0d349b62e0dbd909fc4012c031b44b4c72916.tar.gz
cpython-b3f0d349b62e0dbd909fc4012c031b44b4c72916.tar.bz2
PyObject_ClearWeakRefs() is now a real function instead of a function pointer;
the implementation is in Objects/weakrefobject.c.
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 88fa340..a008245 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1841,21 +1841,6 @@ PyObject_Free(void *p)
}
-/* 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,
e.g. builtin dictionaries and lists, should used Py_ReprEnter() and