Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-144001: Simplify Base64 decoding with altchars and ignorechars specified#144324

Merged
serhiy-storchaka merged 1 commit into
python:mainpython/cpython:mainfrom
serhiy-storchaka:base64-decode-altchars-ignorecharsserhiy-storchaka/cpython:base64-decode-altchars-ignorecharsCopy head branch name to clipboard
Feb 2, 2026
Merged

gh-144001: Simplify Base64 decoding with altchars and ignorechars specified#144324
serhiy-storchaka merged 1 commit into
python:mainpython/cpython:mainfrom
serhiy-storchaka:base64-decode-altchars-ignorecharsserhiy-storchaka/cpython:base64-decode-altchars-ignorecharsCopy head branch name to clipboard

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jan 29, 2026

Copy link
Copy Markdown
Member

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.


📚 Documentation preview 📚: https://cpython-previews--144324.org.readthedocs.build/

…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.
@serhiy-storchaka serhiy-storchaka merged commit c3b61ef into python:main Feb 2, 2026
52 checks passed
@serhiy-storchaka serhiy-storchaka deleted the base64-decode-altchars-ignorechars branch February 2, 2026 11:38
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.