[pypy-issue] Issue #2447: cpyext: _PyObject_GetDictPtr is unimplemented (pypy/pypy)

Wenzel Jakob issues-reply at bitbucket.org
Fri Dec 9 18:36:00 EST 2016


New issue 2447: cpyext: _PyObject_GetDictPtr is unimplemented
https://bitbucket.org/pypy/pypy/issues/2447/cpyext-_pyobject_getdictptr-is

Wenzel Jakob:

The implementation _PyObject_GetDictPtr currently looks like a placeholder that always returns NULL.

@cpython_api([PyObject], PyObjectP, error=CANNOT_FAIL)
def _PyObject_GetDictPtr(space, op):
    return lltype.nullptr(PyObjectP.TO)

This breaks one of the remaining testcases in pybind11 covering types with a modifiable dictionary.

It would be great if this could be modified to return the pointer at tp_dictoffset for types who have this field set up before PyType_Ready.




More information about the pypy-issue mailing list