hpyproject / hpy

HPy: a better API for Python
https://hpyproject.org
MIT License
1.02k stars 52 forks source link

Functions should not suppress unrelated exceptions #442

Open steve-s opened 12 months ago

steve-s commented 12 months ago

I think that issue https://github.com/capi-workgroup/problems/issues/51 raises (pun intended) good points about APIs such as:

For the time being HPy only exposes PyObject_HasAttr and I think we should change its semantics to match the PyObject_HasAttrEx suggested in the issue. For older CPython versions using a hand-written implementation and for newer delegating to PyObject_HasAttrEx if it makes it upstream.