[pypy-issue] Issue #3043: Support Py_RETURN_NOTIMPLEMENTED (pypy/pypy)

Christoph Deil issues-reply at bitbucket.org
Fri Jul 12 04:50:09 EDT 2019


New issue 3043: Support Py_RETURN_NOTIMPLEMENTED
https://bitbucket.org/pypy/pypy/issues/3043/support-py_return_notimplemented

Christoph Deil:

Hi, I’d like to try Astropy on PyPy.

\(related ticket from last year in the Astropy tracker: [https://github.com/astropy/astropy/issues/7768](https://github.com/astropy/astropy/issues/7768)\)

At  the moment, `pip_pypy3 install astropy` fails like this:

```
astropy/wcs/src/unit_list_proxy.c:199:5: error: use of undeclared identifier 'Py_RETURN_NOTIMPLEMENTED'
```

Full log: [https://gist.github.com/cdeil/74d46beebdabf5b40cccedde759bdec1#file-gistfile1-txt-L1503](https://gist.github.com/cdeil/74d46beebdabf5b40cccedde759bdec1#file-gistfile1-txt-L1503)

>From [https://docs.python.org/3/c-api/object.html](https://docs.python.org/3/c-api/object.html) :

> `Py_RETURN_NOTIMPLEMENTED` - Properly handle returning `Py_NotImplemented` from within a C function \(that is, increment the reference count of NotImplemented and return it\).

Is `Py_RETURN_NOTIMPLEMENTED` something you could support in PyPy?




More information about the pypy-issue mailing list