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 eli.bendersky
Recipients eli.bendersky, eric.araujo, eric.smith, ezio.melotti, terry.reedy
Date 2011-11-11.19:39:14
SpamBayes Score 9.2593304e-08
Marked as misclassified No
Message-id <1321040356.1.0.483749785774.issue13385@psf.upfronthosting.co.za>
In-reply-to
Content
The flags 're' accept are numeric underneath, and the current value of "no flags" is just 0, which is also specified in the documentation as the default value. However, using raw numeric values is not a good programming practice. 

The suggestion is to add a simple re.NOFLAGS constant to the 're' module with the value of 0, and use it in the documentation instead of plain 0. It's a simple change that won't break anything and may provide better readability for some code, as well as remove the need for plain integer references in the documentation.

See also issues #11957 and #12875.

Adding to nosy people taking part in discussion of the aforementioned issue. If you're not interested, please remove yourself - I apologize in advance.
History
Date User Action Args
2011-11-11 19:39:16eli.benderskysetrecipients: + eli.bendersky, terry.reedy, eric.smith, ezio.melotti, eric.araujo
2011-11-11 19:39:16eli.benderskysetmessageid: <1321040356.1.0.483749785774.issue13385@psf.upfronthosting.co.za>
2011-11-11 19:39:15eli.benderskylinkissue13385 messages
2011-11-11 19:39:14eli.benderskycreate