]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89653: PEP 670: Convert PyCFunction macros to functions (#92302)
authorVictor Stinner <vstinner@python.org>
Thu, 5 May 2022 09:31:59 +0000 (11:31 +0200)
committerGitHub <noreply@github.com>
Thu, 5 May 2022 09:31:59 +0000 (11:31 +0200)
commit08b562a5dfc5cb5b94c94622763f79998aa682c3
treef921684312e4a4a441a15a44edf76c5db2599897
parent5212cbc2618bd4390c4b768f1c65c28fa6b595a0
gh-89653: PEP 670: Convert PyCFunction macros to functions (#92302)

Convert the following macros to static inline functions:

* PyCFunction_GET_CLASS()
* PyCFunction_GET_FLAGS()
* PyCFunction_GET_FUNCTION()
* PyCFunction_GET_SELF()

Limited C API version 3.11 no longer casts arguments.
Include/cpython/methodobject.h