[issue1496] add str.maketrans()

Guido van Rossum report at bugs.python.org
Mon Nov 26 05:22:08 CET 2007


Guido van Rossum added the comment:

Looks good from a functionality POV.

I wonder if we couldn't change the dict though to always map ordinals to
strings?  Deletions can be mapped to "".  We could warn about non-string
values in the 2.6 version of this code, and make it a (lazy) error in 3.0.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1496>
__________________________________


More information about the Python-bugs-list mailing list