]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45476: Disallow using asdl_seq_GET() as l-value (GH-29866)
authorVictor Stinner <vstinner@python.org>
Tue, 30 Nov 2021 14:13:55 +0000 (15:13 +0100)
committerGitHub <noreply@github.com>
Tue, 30 Nov 2021 14:13:55 +0000 (15:13 +0100)
commit4b97d974ecca9cce532be55410fe851eb9fdcf21
tree210f4aa94de1d93dcc1e7c3dcddeddf2098de7cb
parentc19c3a09618ac400538ee412f84be4c1196c7bab
bpo-45476: Disallow using asdl_seq_GET() as l-value (GH-29866)

The following internal macros can not longer be used as l-value:

* asdl_seq_GET()
* asdl_seq_GET_UNTYPED()
* asdl_seq_LEN()

They are modified to use the _Py_RVALUE() macro.
Include/internal/pycore_asdl.h