[issue6300] encode and decode should accept 'errors' as a keyword argument
Jeff Bradberry
report at bugs.python.org
Thu Sep 17 20:20:16 CEST 2009
Jeff Bradberry <jeff.bradberry at gmail.com> added the comment:
Before:
~/python2.7$ ./python -mtimeit "u'Andr\202 x'.encode('ascii', 'replace')"
1000000 loops, best of 3: 1.8 usec per loop
After:
~/python2.7-patched$ ./python -mtimeit "u'Andr\202 x'.encode('ascii',
'replace')"
1000000 loops, best of 3: 1.73 usec per loop
The difference in performance seems to be trivial, perhaps favoring the
patched version slightly.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6300>
_______________________________________
More information about the Python-bugs-list
mailing list