homepage

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.

Author martin.panter
Recipients docs@python, martin.panter, matrixise, mouse07410, r.david.murray
Date 2015年11月03日.01:04:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446512668.61.0.25002687185.issue25495@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW that Perl function looks like it does the line splitting for you. It mentions "chunks that are a multiple of 57 bytes". The Python function does not do any line splitting. You have to use base64.encodebytes(), codecs.encode(encoding="base64") or perhaps something in the email package (or user code) for that.
I think we all agree that there is no hard limit of 57. I have avoided this function in the past due to the documentation. The question is whether the documentation should mention that number in a more accurate context, or not at all.
Personally I don’t see much harm in mentioning the 57-byte input chunking, as long as it is obvious it is not the only option. I don’t have a strong view; I am just trying to be conservative.
History
Date User Action Args
2015年11月03日 01:04:28martin.pantersetrecipients: + martin.panter, r.david.murray, docs@python, matrixise, mouse07410
2015年11月03日 01:04:28martin.pantersetmessageid: <1446512668.61.0.25002687185.issue25495@psf.upfronthosting.co.za>
2015年11月03日 01:04:28martin.panterlinkissue25495 messages
2015年11月03日 01:04:28martin.pantercreate

AltStyle によって変換されたページ (->オリジナル) /