[pypy-issue] Issue #2821: _PyObject_GC_Malloc missing from the C API emulation layer (pypy/pypy)
Hrvoje Nikšić
issues-reply at bitbucket.org
Thu May 3 11:23:26 EDT 2018
New issue 2821: _PyObject_GC_Malloc missing from the C API emulation layer
https://bitbucket.org/pypy/pypy/issues/2821/_pyobject_gc_malloc-missing-from-the-c-api
Hrvoje Nikšić:
Although technically a private function, `_PyObject_GC_Malloc` is currently the only way to implement an object with additional data not managed by Python's type/allocation system. Since other "gc" functions, like `_PyObject_GC_New`, appear aliased to their non-gc counterparts, we worked around the issue by just calling `PyObject_Malloc` when compiling our C extensions under PyPy.
More information about the pypy-issue
mailing list