]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40943: PY_SSIZE_T_CLEAN required for '#' formats (GH-20784)
authorVictor Stinner <vstinner@python.org>
Fri, 19 Jun 2020 09:45:31 +0000 (11:45 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2020 09:45:31 +0000 (11:45 +0200)
commit37bb2895561d3e63a631f10875567b4e33b30c07
tree25afc8f4882caeaef5f14e09499a5e949f218b0c
parent01ece63d42b830df106948db0aefa6c1ba24416a
bpo-40943: PY_SSIZE_T_CLEAN required for '#' formats (GH-20784)

The PY_SSIZE_T_CLEAN macro must now be defined to use
PyArg_ParseTuple() and Py_BuildValue() "#" formats: "es#", "et#",
"s#", "u#", "y#", "z#", "U#" and "Z#". See the PEP 353.

Update _testcapi.test_buildvalue_issue38913().
Doc/c-api/arg.rst
Doc/whatsnew/3.10.rst
Misc/NEWS.d/next/C API/2020-06-10-18-37-26.bpo-40943.i4q7rK.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Python/getargs.c
Python/modsupport.c