◐ Shell
clean mode source ↗

gh-144001: Simplify Base64 decoding with altchars and ignorechars specified by serhiy-storchaka · Pull Request #144324 · python/cpython

…rs specified

Treat "+" and "/" like other characters not in the alternative Base64
alphabet when both altchars and ignorechars are specified.
E.g. discard them if they are not in altchars but are in ignorechars,
and set error if they are not in altchars and not in ignorechars.
Only emit warnings if ignorechars is not specified.

Aniketsy pushed a commit to Aniketsy/cpython that referenced this pull request

Feb 3, 2026
…rs specified (pythonGH-144324)

Treat "+" and "/" like other characters not in the alternative Base64
alphabet when both altchars and ignorechars are specified.
E.g. discard them if they are not in altchars but are in ignorechars,
and set error if they are not in altchars and not in ignorechars.
Only emit warnings if ignorechars is not specified.

thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request

Feb 15, 2026
…rs specified (pythonGH-144324)

Treat "+" and "/" like other characters not in the alternative Base64
alphabet when both altchars and ignorechars are specified.
E.g. discard them if they are not in altchars but are in ignorechars,
and set error if they are not in altchars and not in ignorechars.
Only emit warnings if ignorechars is not specified.