]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-147944: Increase range of bytes_per_sep (GH-147946)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 1 Apr 2026 08:33:30 +0000 (11:33 +0300)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2026 08:33:30 +0000 (08:33 +0000)
commit473d2a35ceda738cdd4ffde9b7ace013c54ed683
tree43e1f61947bd4a3cb632a64225d7ede0847bb735
parent42825e63870035f71f705a066e32e08550b593fc
gh-147944: Increase range of bytes_per_sep (GH-147946)

Accepted range for the bytes_per_sep argument of bytes.hex(),
bytearray.hex(), memoryview.hex(), and binascii.b2a_hex()
is now increased, so passing sys.maxsize and -sys.maxsize is now
valid.
14 files changed:
Include/internal/pycore_strhex.h
Lib/test/test_base64.py
Lib/test/test_bytes.py
Lib/test/test_memoryview.py
Misc/NEWS.d/next/Library/2026-03-31-19-54-32.gh-issue-147944.3dn8GZ.rst [new file with mode: 0644]
Modules/binascii.c
Modules/clinic/binascii.c.h
Objects/bytearrayobject.c
Objects/bytesobject.c
Objects/clinic/bytearrayobject.c.h
Objects/clinic/bytesobject.c.h
Objects/clinic/memoryobject.c.h
Objects/memoryobject.c
Python/pystrhex.c