]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89653: PEP 670: Convert PyCell macros to functions (#92653)
authorVictor Stinner <vstinner@python.org>
Wed, 11 May 2022 21:24:48 +0000 (23:24 +0200)
committerGitHub <noreply@github.com>
Wed, 11 May 2022 21:24:48 +0000 (23:24 +0200)
commit897f14d38d1b455668f9f7ce87892f5efcaf8932
tree7b2f8461869d906f38067b583deb24927666638b
parentda5727a120e426ffaf68bf3a8016491205bd2f80
gh-89653: PEP 670: Convert PyCell macros to functions (#92653)

Convert the following macros to static inline functions:

* PyCell_GET()
* PyCell_SET()

Limited C API version 3.12 no longer casts arguments.

Fix also usage of PyCell_SET(): only delete the old value after
setting the new value.
Include/cpython/cellobject.h
Objects/cellobject.c
Objects/frameobject.c