Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Apr 4, 2020

Always declare PyIndex_Check() as an opaque function to hide
implementation details: remove PyIndex_Check() macro. The macro
accessed directly PyTypeObject.tp_as_number field which prevented to
make PyTypeObject structure opaque.

https://bugs.python.org/issue40170

Always declare PyIndex_Check() as an opaque function to hide
implementation details: remove PyIndex_Check() macro. The macro
accessed directly the PyTypeObject.tp_as_number member.
@vstinner
Copy link
Member Author

vstinner commented Apr 7, 2020

I created PR #19426 to prepare the work on PyIndex_Check() macro of the public C API. I will rewrite this change on top of PR #19426 once it will be merged.

@vstinner vstinner closed this Apr 7, 2020
@vstinner vstinner deleted the remove_pyindex_check_macro branch April 7, 2020 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants