Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commented Jan 19, 2026

It does not support an ASCII string.

Also add more tests.


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

It does not support an ASCII string. Also add more tests.
Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


*ignorechars* should be a :term:`bytes-like object` or ASCII string
containing characters to ignore
*ignorechars* should be a byte string containing characters to ignore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As noted on the issue, I think bytes-like object is correct here.

withself.assertRaises(TypeError):
base64.a85decode(b"a b\nc", ignorechars=" \n")
withself.assertRaises(TypeError):
base64.a85decode(b"a b\nc", ignorechars=None)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also add passing tests for bytearray, array.array, and memoryview here for the ignorechars argument if we want to be complete?

@bedevere-app
Copy link

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changesneeds backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixesskip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@serhiy-storchaka@vstinner@bitdancer