[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.
Martin v. Löwis
report at bugs.python.org
Mon Jul 7 14:15:49 CEST 2014
Martin v. Löwis added the comment:
Two observations:
1. This issue is only about identifiers. So processing of string literals is technically out of scope.
2. I'd suggest to replace .translate with regular expressions:
py> re.sub('[^(){}\[\]]','','foo(b[a]{r}≠)')
'([]{})'
I'm sure people interested in performance will want to time this approach.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21765>
_______________________________________
More information about the Python-bugs-list
mailing list