Message303627
> This means if someone does subclass string.Template and changes the pattern to accept Unicode identifiers, then with this change they will also have to modify flags, whereas before they didn't.
Thank you for pointing it out.
I removed re.A flag after compilation.
> OTOH, making the change for performance reasons might be questionable, given that the regular expressions are compiled by the Template's metaclass, so unlikely to contribute significantly to overall performance wins.
original: import time: 2310 | 9589 | string
patched: import time: 1420 | 8702 | string
We can save about 900 us. |
|
Date |
User |
Action |
Args |
2017-10-03 16:31:54 | methane | set | recipients:
+ methane, barry, ezio.melotti, mrabarnett, serhiy.storchaka |
2017-10-03 16:31:54 | methane | set | messageid: <1507048314.33.0.213398074469.issue31672@psf.upfronthosting.co.za> |
2017-10-03 16:31:54 | methane | link | issue31672 messages |
2017-10-03 16:31:54 | methane | create | |
|