[issue1496] add str.maketrans()

2007-11-27 Thread Georg Brandl
Georg Brandl added the comment: Okay, checked in as r59205. -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1496 __ ___

[issue1496] add str.maketrans()

2007-11-26 Thread Guido van Rossum
Guido van Rossum added the comment: BTW I'm okay with submitting this as is (plus docs and tests) and tighten the spec later. -- assignee: gvanrossum - georg.brandl keywords: +patch, py3k __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1496

[issue1496] add str.maketrans()

2007-11-25 Thread Guido van Rossum
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.

[issue1496] add str.maketrans()

2007-11-24 Thread Georg Brandl
New submission from Georg Brandl: This patch restores old behavior of str.translate() and adds the str.maketrans() static method. Docs and tests will follow if this is the right way to go. -- assignee: gvanrossum files: str-maketrans.diff messages: 57823 nosy: georg.brandl, gvanrossum