homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients ethan.furman, gvanrossum, python-dev, rhettinger, serhiy.storchaka
Date 2016年09月11日.21:32:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473629542.19.0.174283558048.issue28082@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016年09月11日 21:32:22rhettingersetrecipients: + rhettinger, gvanrossum, ethan.furman, python-dev, serhiy.storchaka
2016年09月11日 21:32:22rhettingersetmessageid: <1473629542.19.0.174283558048.issue28082@psf.upfronthosting.co.za>
2016年09月11日 21:32:22rhettingerlinkissue28082 messages
2016年09月11日 21:32:22rhettingercreate

AltStyle によって変換されたページ (->オリジナル) /