diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-08 00:26:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 00:26:41 (GMT) |
commit | 307b9d0144e719b016a47fcc43397c070615e01e (patch) | |
tree | 0158f91ba20b35a0c927a65c045c49ff7eeb0387 /Objects/abstract.c | |
parent | a15e260b708a98edaba86a2aa663c3f6b2abc964 (diff) | |
download | cpython-307b9d0144e719b016a47fcc43397c070615e01e.zip cpython-307b9d0144e719b016a47fcc43397c070615e01e.tar.gz cpython-307b9d0144e719b016a47fcc43397c070615e01e.tar.bz2 |
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.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index b5d91db..7e1e51b 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1309,8 +1309,6 @@ PyNumber_Absolute(PyObject *o) } -#undef PyIndex_Check - int PyIndex_Check(PyObject *obj) { |