summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Include/classobject.h1
-rw-r--r--Include/funcobject.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Include/classobject.h b/Include/classobject.h
index 06c178f7dd..3b25c7447d 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;
diff --git a/Include/funcobject.h b/Include/funcobject.h
index c8e97fdc0d..8cedeb7efd 100644
--- a/Include/funcobject.h
+++ b/Include/funcobject.h
@@ -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;