Message222454
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. | |
| Date | User | Action | Args | | 2014-07-07 12:15:49 | loewis | set | recipients: + loewis, lemburg, terry.reedy, taleinat, ezio.melotti | | 2014-07-07 12:15:49 | loewis | set | messageid: <1404735349.53.0.0560237071784.issue21765@psf.upfronthosting.co.za> | | 2014-07-07 12:15:49 | loewis | link | issue21765 messages | | 2014-07-07 12:15:49 | loewis | create | | |