]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89653: PEP 670: Use PyObject* type for parameters (GH-92694)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 May 2022 23:23:29 +0000 (16:23 -0700)
committerGitHub <noreply@github.com>
Wed, 11 May 2022 23:23:29 +0000 (16:23 -0700)
commita1bef8c2e305178fae2ff90b5772e785a97d2201
tree3abd613bf2e358df877f2cd07650bdab5cfe1799
parentc7b9da5204b44fd3e9960a2326d431e3ff5c8667
gh-89653: PEP 670: Use PyObject* type for parameters (GH-92694)

Use the PyObject* type for parameters of static inline functions:

* Py_SIZE(): same parameter type than PyObject_Size()
* PyList_GET_SIZE(), PyList_SET_ITEM(): same parameter type than
  PyList_Size() and PyList_SetItem()
* PyTuple_GET_SIZE(), PyTuple_SET_ITEM(): same parameter type than
  PyTuple_Size() and PyTuple_SetItem().
(cherry picked from commit 6de78ef96afbaa127472bb9dc0a4e41e44555d00)

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/cpython/listobject.h
Include/cpython/tupleobject.h
Include/object.h