Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner 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
MemberAuthor

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.

@vstinnervstinner closed this Apr 7, 2020
@vstinnervstinner deleted the remove_pyindex_check_macro branch April 7, 2020 23:40
Sign up for freeto 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

@vstinner@the-knights-who-say-ni@bedevere-bot