]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40170: Remove PyIndex_Check() macro (GH-19428)
authorVictor Stinner <vstinner@python.org>
Wed, 8 Apr 2020 00:26:41 +0000 (02:26 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Apr 2020 00:26:41 +0000 (02:26 +0200)
commit307b9d0144e719b016a47fcc43397c070615e01e
tree0158f91ba20b35a0c927a65c045c49ff7eeb0387
parenta15e260b708a98edaba86a2aa663c3f6b2abc964
bpo-40170: Remove PyIndex_Check() macro (GH-19428)

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.
Include/cpython/abstract.h
Misc/NEWS.d/next/C API/2020-04-04-23-51-59.bpo-40170.uXQ701.rst [new file with mode: 0644]
Objects/abstract.c