mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
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:
parent
a15e260b70
commit
307b9d0144
3 changed files with 3 additions and 8 deletions
|
|
@ -1309,8 +1309,6 @@ PyNumber_Absolute(PyObject *o)
|
|||
}
|
||||
|
||||
|
||||
#undef PyIndex_Check
|
||||
|
||||
int
|
||||
PyIndex_Check(PyObject *obj)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue