[issue26464] str.translate() unexpectedly duplicates untranslated characters

2016-03-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka components: +Interpreter Core nosy: +serhiy.storchaka priority: normal -> high stage: -> needs patch ___ Python tracker _

[issue26464] str.translate() unexpectedly duplicates untranslated characters

2016-03-01 Thread Ben Knight
New submission from Ben Knight: Python 3.5.1 x86-64, Windows 10 I created a translation map that translated some characters to None and others to strings and found that in some cases str.translate() will duplicate one of the untranslated characters in the returned string. How to reproduce: t