Documentation
As per https://docs.python.org/3.15/whatsnew/3.15.html#base64:
Added the canonical parameter in b32decode(), b32hexdecode(), b64decode(), urlsafe_b64decode(), a85decode(), b85decode(), and z85decode(), to reject encodings with non-zero padding bits or other non-canonical forms. (Contributed by Gregory P. Smith in gh-146311.)
(Introduced in #146312).
However, urlsafe_b64decode() is the only one without the parameter:
|
def urlsafe_b64decode(s, *, padded=False): |
Opening this issue as either:
- The what's new entry needs to be fixed.
urlsafe_b64decode() needs to get this new parameter too.
Can open a PR once decided.
Linked PRs
Documentation
As per https://docs.python.org/3.15/whatsnew/3.15.html#base64:
(Introduced in #146312).
However,
urlsafe_b64decode()is the only one without the parameter:cpython/Lib/base64.py
Line 167 in 30ac23e
Opening this issue as either:
urlsafe_b64decode()needs to get this new parameter too.Can open a PR once decided.
Linked PRs