[New-bugs-announce] [issue17714] str.encode('base64') add trailing new line character is not documented

Alessandro Piccione report at bugs.python.org
Sat Apr 13 17:39:29 CEST 2013


New submission from Alessandro Piccione:

str.encode() with 'base64' as argument add a trailing new line character to the returned string. This is the difference from base64.b64encode(str) (that is used internally).

This is not documented in str.encode()
http://docs.python.org/2/library/stdtypes.html?highlight=encode#str.encode

Instead it is perfectly documented for base64.encodestring()
http://docs.python.org/2/library/base64.html#base64.encodestring

----------
messages: 186734
nosy: alex.75
priority: normal
severity: normal
status: open
title: str.encode('base64') add trailing new line character is not documented
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17714>
_______________________________________


More information about the New-bugs-announce mailing list