◐ Shell
clean mode source ↗

bpo-40170: Remove PyIndex_Check() macro by vstinner · Pull Request #19375 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@vstinner

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

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 deleted the remove_pyindex_check_macro branch

April 7, 2020 23:40

Labels