This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: binascii.b2a.base64() braindeadness
Type: enhancement Stage:
Components: None Versions:
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum
Priority: normal Keywords:

Created on 2001-04-12 15:43 by gvanrossum, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (2)
msg53137 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-04-12 15:43
Jim Fulton pointed out that binascii's b2a_base64()
function restricts the length of its input to 57
characters for no good reason: the code would work for
any input size but for this check. Also, there are
situations where it makes sense not to append a
newline, or to append something else than a newline.


- get rid of the input size check

- add an optional argument giving the delimiter string
to be appended, defaulting to "\n"

- possibly special-case None as the delimiter string to
avoid adding the pad bytes too???
msg53138 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-08-09 16:53
Logged In: YES 

Thank you.

I've moved this feature request to PEP 42, "Feature Requests".
Date User Action Args
2022-04-10 16:03:57adminsetgithub: 34317
2001-04-12 15:43:07gvanrossumcreate