[New-bugs-announce] [issue35544] unicode.encode docstring says return value can be unicode
radiocane
report at bugs.python.org
Thu Dec 20 04:18:56 EST 2018
New submission from radiocane <bruno at anche.no>:
In Python 2.7.15rc1 the docstring for unicode.encode starts with: "S.encode([encoding[,errors]]) -> string or unicode"
But if this answer https://stackoverflow.com/a/449281/5397695 is correct, then unicode.encode will never return a unicode object. Am I right?
----------
components: Unicode
messages: 332203
nosy: ezio.melotti, radiocane, vstinner
priority: normal
severity: normal
status: open
title: unicode.encode docstring says return value can be unicode
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35544>
_______________________________________
More information about the New-bugs-announce
mailing list