From b349e4c929131eb708ff3db569077f0c851338e9 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 6 Aug 2014 19:31:40 -0400 Subject: Issue #22116: C functions and methods (of the 'builtin_function_or_method' type) can now be weakref'ed. Patch by Wei Wu. --- Include/methodobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/methodobject.h') diff --git a/Include/methodobject.h b/Include/methodobject.h index 3cc2ea9308..0236228617 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 -- cgit v1.2.1