Message275860
Guido, is this something you wanted to happen? I thought you had objected to propagating the four flavors of enum throughout the standard library, particularly for long standing, stable APIs.
AFAICT, no one has ever requested this for the re module, nor is there any demonstrated need. As a heavy user of regexes, I've have never looked at the flag values (and if I had, it wouldn't have been helpful to hide that these are integer values rather than giving them both a new type and an unattractive appearance: <Flag.ASCII|IGNORECASE: 258>. Also, prior to this change, the re module and its sre components had no external dependencies and did not require any other modules to be loaded in memory to run.
If changes like this do go in, it needs better names (i.e. Flag -> RegexFlag) so that someone using typing doesn't end-up many distinct kinds of integer flags all being called Flag. |
|
Date |
User |
Action |
Args |
2016-09-11 21:32:22 | rhettinger | set | recipients:
+ rhettinger, gvanrossum, ethan.furman, python-dev, serhiy.storchaka |
2016-09-11 21:32:22 | rhettinger | set | messageid: <1473629542.19.0.174283558048.issue28082@psf.upfronthosting.co.za> |
2016-09-11 21:32:22 | rhettinger | link | issue28082 messages |
2016-09-11 21:32:22 | rhettinger | create | |
|