summaryrefslogtreecommitdiffstats
path: root/Include/classobject.h
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-03-23 04:17:58 (GMT)
committerFred Drake <fdrake@acm.org>2001-03-23 04:17:58 (GMT)
commit6a1c87ddf9033570bb773ffec5190d44e70bd5a1 (patch)
tree479f5c97ba7f24d3fb59d20ead680d40b159545e /Include/classobject.h
parent4131830c23727aac262291934007c0b731b6e00c (diff)
downloadcpython-6a1c87ddf9033570bb773ffec5190d44e70bd5a1.zip
cpython-6a1c87ddf9033570bb773ffec5190d44e70bd5a1.tar.gz
cpython-6a1c87ddf9033570bb773ffec5190d44e70bd5a1.tar.bz2
Add the necessary field for weak reference support to the function and
method types.
Diffstat (limited to 'Include/classobject.h')
-rw-r--r--Include/classobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/classobject.h b/Include/classobject.h
index 06c178f..3b25c74 100644
--- a/Include/classobject.h
+++ b/Include/classobject.h
@@ -32,6 +32,7 @@ typedef struct {
PyObject *im_func; /* The callable object implementing the method */
PyObject *im_self; /* The instance it is bound to, or NULL */
PyObject *im_class; /* The class that defined the method */
+ PyObject *im_weakreflist; /* List of weak references */
} PyMethodObject;
extern DL_IMPORT(PyTypeObject) PyClass_Type, PyInstance_Type, PyMethod_Type;