]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89653: PEP 670: Use PyObject* type for parameters (#92694)
authorVictor Stinner <vstinner@python.org>
Wed, 11 May 2022 22:49:03 +0000 (00:49 +0200)
committerGitHub <noreply@github.com>
Wed, 11 May 2022 22:49:03 +0000 (00:49 +0200)
commit6de78ef96afbaa127472bb9dc0a4e41e44555d00
treef858a9a2dd32a8511f4d5ad41c9be4fed7afa712
parentd492f0ab2add26d89474b002a9a5a2da306222c5
gh-89653: PEP 670: Use PyObject* type for parameters (#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().
Include/cpython/listobject.h
Include/cpython/tupleobject.h
Include/object.h