]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89653: PEP 670: Limited API doesn't cast arguments (GH-92654)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 May 2022 22:32:04 +0000 (15:32 -0700)
committerGitHub <noreply@github.com>
Wed, 11 May 2022 22:32:04 +0000 (15:32 -0700)
commit6f9287205f2fb562262750ac2e80b555ff5003ca
treed86afc6444cc14c8d72967238789de8b689bbbf9
parent64593f2fedfe41c17e2bad6f207d7a07cfa762b9
gh-89653: PEP 670: Limited API doesn't cast arguments (GH-92654)

The limited API version 3.11 no longer casts arguments to expected
types of functions of functions:

* PyList_GET_SIZE(), PyList_SET_ITEM()
* PyTuple_GET_SIZE(), PyTuple_SET_ITEM()
* PyWeakref_GET_OBJECT()
(cherry picked from commit 7d3b469e475e6e52ce4f0bad7198bb05ead77b1d)

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