[docs] [issue25495] binascii documentation incorrect

Mouse report at bugs.python.org
Wed Oct 28 12:10:29 EDT 2015

Mouse added the comment:

Yes I know where this came from. :-)

Here is my proposed change.

Replace the statement 

The length of data should be at most 57 to adhere to the base64 standard.


To be MIME-compliant, the Base64 output (as defined in RFC4648) should be broken into lines of at most 76 characters long. This post-processing of the output is the responsibility of the caller. Note that the original PEM context-transfer encoding limited line length to 64 characters.

Would this change be agreeable to you?


Python tracker <report at bugs.python.org>

More information about the docs mailing list