[New-bugs-announce] [issue6300] encode and decode should accept 'errors' as a keyword argument

R. David Murray report at bugs.python.org
Thu Jun 18 02:00:15 CEST 2009


New submission from R. David Murray <rdmurray at bitdance.com>:

I repeatedly find myself typing things like
"mybytestring.decode('ASCII', errors='replace')".  This seems like the
natural (I'm tempted to say Pythonic) thing to do, and is more readable
(IMO) than "mybytestring.decode('ASCII', 'replace')".  (replace what?).
 However currently encode and decode complain that they do not take any
keyword arguments.

----------
components: Interpreter Core
messages: 89485
nosy: r.david.murray
priority: low
severity: normal
status: open
title: encode and decode should accept 'errors' as a keyword argument
type: feature request
versions: Python 2.7, Python 3.2

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


More information about the New-bugs-announce mailing list