Message230878
I reviewed re_named_consts.patch and it looks great (I especially like the removal of superfluous OPCODES dictionary lookups and improved repr for the integer codes).
Since the op codes are singletons, you can use identity tests instead of
equality checks in sre_parse.py:
- if op == "in":
+ if op == IN:
Also, I'll echo the suggestion to make NamedIntConstant private with a leading underscore.
Nice work. |
|
Date |
User |
Action |
Args |
2014-11-09 02:52:27 | rhettinger | set | recipients:
+ rhettinger, gvanrossum, terry.reedy, pitrou, ezio.melotti, mrabarnett, serhiy.storchaka |
2014-11-09 02:52:26 | rhettinger | set | messageid: <1415501546.92.0.728532376224.issue22434@psf.upfronthosting.co.za> |
2014-11-09 02:52:26 | rhettinger | link | issue22434 messages |
2014-11-09 02:52:26 | rhettinger | create | |
|