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.
This commit is contained in:
Victor Stinner 2020-04-08 02:26:41 +02:00 committed by GitHub
parent a15e260b70
commit 307b9d0144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 8 deletions

View file

@ -1309,8 +1309,6 @@ PyNumber_Absolute(PyObject *o)
}
#undef PyIndex_Check
int
PyIndex_Check(PyObject *obj)
{