]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132629: Deprecate accepting out-of-range values for unsigned integers in PyArg_Par...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 13 Jul 2025 09:44:54 +0000 (12:44 +0300)
committerGitHub <noreply@github.com>
Sun, 13 Jul 2025 09:44:54 +0000 (12:44 +0300)
commite18829a8adb3a64ffffffbd7dcada3c3611522b0
tree25d51f0a503dff7f1d694b94b50a427e122eb57a
parent3dbe02ccd3eefc48ac9fa14427bb4cdb82d1ebae
gh-132629: Deprecate accepting out-of-range values for unsigned integers in PyArg_Parse (GH-132630)

For unsigned integer formats in the PyArg_Parse* functions,
accepting Python integers with value that is larger than
the maximal value the corresponding C type or less than
the minimal value for the corresponding signed integer type
is now deprecated.
19 files changed:
Doc/c-api/arg.rst
Doc/whatsnew/3.15.rst
Lib/test/clinic.test.c
Lib/test/test_capi/test_getargs.py
Lib/test/test_clinic.py
Misc/NEWS.d/next/C_API/2025-04-17-12-37-27.gh-issue-132629.01ArwX.rst [new file with mode: 0644]
Modules/clinic/_cursesmodule.c.h
Modules/clinic/_testclinic.c.h
Modules/clinic/_zoneinfo.c.h
Modules/clinic/binascii.c.h
Modules/clinic/fcntlmodule.c.h
Modules/clinic/posixmodule.c.h
Modules/clinic/selectmodule.c.h
Modules/clinic/signalmodule.c.h
Modules/clinic/zlibmodule.c.h
Modules/fcntlmodule.c
PC/clinic/msvcrtmodule.c.h
Python/getargs.c
Tools/clinic/libclinic/converters.py