Skip to content

gh-148153: Do not use assert for parameter validation in base64#148154

Open
serhiy-storchaka wants to merge 1 commit intopython:mainfrom
serhiy-storchaka:base64-b32encode-assert
Open

gh-148153: Do not use assert for parameter validation in base64#148154
serhiy-storchaka wants to merge 1 commit intopython:mainfrom
serhiy-storchaka:base64-b32encode-assert

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Apr 6, 2026

base64.b32encode() now always raises ValueError instead of AssertionError for the value of map01 with invalid length.


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

base64.b32encode() now always raises ValueError instead of
AssertionError for the value of map01 with invalid length.
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