]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-50333: Deprecate support of non-tuple sequences in PyArg_ParseTuple() (GH-128374)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 8 Apr 2025 11:26:32 +0000 (14:26 +0300)
committerGitHub <noreply@github.com>
Tue, 8 Apr 2025 11:26:32 +0000 (14:26 +0300)
commit0e4cf9ce7c7b0ae6e78ded27db828eac0f8c7724
treefd4513665b2bbbc0640fb7bc5b3f1296226e550a
parent0f04f2456a2ff996cc670342a287928ab5f9b706
gh-50333: Deprecate support of non-tuple sequences in PyArg_ParseTuple() (GH-128374)

Non-tuple sequences are deprecated as argument for the "(items)" format unit
in PyArg_ParseTuple() and other argument parsing functions if items contains
format units which store borrowed buffer or reference (e.g. "s" and "O").

str and bytearray are no longer accepted as valid sequences.
Doc/c-api/arg.rst
Doc/whatsnew/3.14.rst
Lib/test/test_capi/test_getargs.py
Misc/NEWS.d/next/C_API/2024-12-31-15-28-14.gh-issue-50333.KxQUXa.rst [new file with mode: 0644]
Python/getargs.c