[issue36072] str.translate() behaves differently for ASCII-only and other strings

2019-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. The fact the CPython attempts to optimize all_ascii.translate(table) is a CPython implementation detail, not a language feature. -- assignee: -> docs@python components: +Documentation nosy: +docs@python, terry.reedy resolution: -> not a

[issue36072] str.translate() behaves differently for ASCII-only and other strings

2019-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You are using a mapping that returns different values for the same key. You should not expect a stable result for it. I do not think this needs a special mentioning in the documentation. Garbage in -- garbage out. -- nosy: +serhiy.storchaka

[issue36072] str.translate() behaves differently for ASCII-only and other strings

2019-02-21 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- title: str.translate() behave differently for ASCII-only and other strings -> str.translate() behaves differently for ASCII-only and other strings ___ Python tracker