]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-146431: Add the wrapcol and ignorechars parameters for more Base XX codec (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 1 Apr 2026 07:48:50 +0000 (10:48 +0300)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2026 07:48:50 +0000 (10:48 +0300)
commit42825e63870035f71f705a066e32e08550b593fc
tree57c24a1471f708cf4daee57a1227ca26e9e57fec
parent4497cf3aed587593199baadb83d68c3602ee99ec
gh-146431: Add the wrapcol and ignorechars parameters for more Base XX codec (GH-146434)

Add the wrapcol parameter to base64 functions b16encode(), b32encode(),
b32hexencode(), b85encode() and z85encode(), and binascii functions
b2a_base32() and b2a_base85().

Add the ignorechars parameter to base64 functions b16decode(), b32decode(),
b32hexdecode(), b85decode() and z85decode(), and binascii functions
a2b_hex(), unhexlify(), a2b_base32() and a2b_base85().
Doc/library/base64.rst
Doc/library/binascii.rst
Doc/whatsnew/3.15.rst
Lib/base64.py
Lib/test/test_base64.py
Lib/test/test_binascii.py
Misc/NEWS.d/next/Library/2026-03-25-21-08-51.gh-issue-146431.zERPwe.rst [new file with mode: 0644]
Modules/binascii.c
Modules/clinic/binascii.c.h