Message147443
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. |
|
Date |
User |
Action |
Args |
2011-11-11 19:39:16 | eli.bendersky | set | recipients:
+ eli.bendersky, terry.reedy, eric.smith, ezio.melotti, eric.araujo |
2011-11-11 19:39:16 | eli.bendersky | set | messageid: <1321040356.1.0.483749785774.issue13385@psf.upfronthosting.co.za> |
2011-11-11 19:39:15 | eli.bendersky | link | issue13385 messages |
2011-11-11 19:39:14 | eli.bendersky | create | |
|