summaryrefslogtreecommitdiffstats
path: root/Include/methodobject.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-08-06 23:31:40 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-08-06 23:31:40 (GMT)
commitb349e4c929131eb708ff3db569077f0c851338e9 (patch)
tree3d5b5e89bcc0f2c55587459d3bc91ee34a94d74b /Include/methodobject.h
parentf3440c6881a0fdb24ea30f971ebc0fd091bc7ffb (diff)
downloadcpython-b349e4c929131eb708ff3db569077f0c851338e9.zip
cpython-b349e4c929131eb708ff3db569077f0c851338e9.tar.gz
cpython-b349e4c929131eb708ff3db569077f0c851338e9.tar.bz2
Issue #22116: C functions and methods (of the 'builtin_function_or_method' type) can now be weakref'ed. Patch by Wei Wu.
Diffstat (limited to 'Include/methodobject.h')
-rw-r--r--Include/methodobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h
index 3cc2ea9..0236228 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -77,6 +77,7 @@ typedef struct {
PyMethodDef *m_ml; /* Description of the C function to call */
PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */
PyObject *m_module; /* The __module__ attribute, can be anything */
+ PyObject *m_weakreflist; /* List of weak references */
} PyCFunctionObject;
#endif