[New-bugs-announce] [issue3252] str.tobytes() and bytes/bytearray.tostr()
Mark Summerfield
report at bugs.python.org
Tue Jul 1 17:39:12 CEST 2008
New submission from Mark Summerfield <mark at qtrac.eu>:
I know it is almost certainly too late, but I think a lot of people will
be confused by str.decode() and bytes.encode() (or was that the other
way around)?
Calling the methods str.tobytes() and bytes.tostr() (or nicer,
str.to_bytes() and bytes.to_str()) would be hard to confuse and IMO will
lead to fewer bug reports and complaints once Python 3.0 final comes out.
And there is a kind of precedent in that threading.isDaemon() became
threading.is_daemon() between 30a5 and 30b1.
----------
components: Interpreter Core
messages: 69047
nosy: mark
severity: normal
status: open
title: str.tobytes() and bytes/bytearray.tostr()
type: feature request
versions: Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3252>
_______________________________________
More information about the New-bugs-announce
mailing list