mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815)
This commit is contained in:
parent
484b40bf18
commit
7546914e3f
34 changed files with 58 additions and 58 deletions
|
@ -23,7 +23,7 @@ PyAPI_DATA(PyTypeObject) PyListRevIter_Type;
|
|||
|
||||
#define PyList_Check(op) \
|
||||
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LIST_SUBCLASS)
|
||||
#define PyList_CheckExact(op) Py_IS_TYPE(op, &PyList_Type)
|
||||
#define PyList_CheckExact(op) Py_IS_TYPE((op), &PyList_Type)
|
||||
|
||||
PyAPI_FUNC(PyObject *) PyList_New(Py_ssize_t size);
|
||||
PyAPI_FUNC(Py_ssize_t) PyList_Size(PyObject *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue