[pypy-commit] pypy py3.5: Use 3.5 definition for PyCFunctionObject (adds m_weakreflist)

rlamy pypy.commits at gmail.com
Mon Feb 13 14:53:54 EST 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r90104:bdc8a83774b0
Date: 2017-02-13 19:53 +0000
http://bitbucket.org/pypy/pypy/changeset/bdc8a83774b0/

Log:	Use 3.5 definition for PyCFunctionObject (adds m_weakreflist)

diff --git a/pypy/module/cpyext/parse/cpyext_object.h b/pypy/module/cpyext/parse/cpyext_object.h
--- a/pypy/module/cpyext/parse/cpyext_object.h
+++ b/pypy/module/cpyext/parse/cpyext_object.h
@@ -193,6 +193,7 @@
     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;
 
 /* from structmember.h */


More information about the pypy-commit mailing list