]> granicus.if.org Git - python/commitdiff
Add the necessary field for weak reference support to the function and
authorFred Drake <fdrake@acm.org>
Fri, 23 Mar 2001 04:17:58 +0000 (04:17 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 23 Mar 2001 04:17:58 +0000 (04:17 +0000)
method types.

Include/classobject.h
Include/funcobject.h

index 06c178f7ddf1dfc7cfe948ab43d99fa039651878..3b25c7447d633565bf15c0a122f2f36f441f07a4 100644 (file)
@@ -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;
index c8e97fdc0d6562f67294ecc0126c0130fc5dd096..8cedeb7efdcb9afa38fde4bf8dcaa713428a2169 100644 (file)
@@ -16,6 +16,7 @@ typedef struct {
     PyObject *func_doc;
     PyObject *func_name;
     PyObject *func_dict;
+    PyObject *func_weakreflist;
 } PyFunctionObject;
 
 extern DL_IMPORT(PyTypeObject) PyFunction_Type;