mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
This commit is contained in:
parent
53ff86ea5f
commit
402b73fb8d
40 changed files with 1048 additions and 127 deletions
|
|
@ -2269,6 +2269,10 @@ _Py_GetObjects(PyObject *self, PyObject *args)
|
|||
#endif
|
||||
|
||||
|
||||
/* Hack to force loading of capsule.o */
|
||||
PyTypeObject *_Py_capsule_hack = &PyCapsule_Type;
|
||||
|
||||
|
||||
/* Hack to force loading of cobject.o */
|
||||
PyTypeObject *_Py_cobject_hack = &PyCObject_Type;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue