Mercurial > cpython-lru_cache-weakref
diff Objects/object.c @ 59998:d11fbc796499 legacy-trunk
Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
| author | Larry Hastings <larry@hastings.org> |
|---|---|
| date | Thu, 25 Mar 2010 00:54:54 +0000 |
| parents | 113c0b86fd74 |
| children | ace711550b59 |
line wrap: on
line diff
--- a/Objects/object.c Thu Mar 25 00:51:58 2010 +0000 +++ b/Objects/object.c Thu Mar 25 00:54:54 2010 +0000 @@ -2269,6 +2269,10 @@ #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;
