[docs] [issue12875] backport re.compile flags default value documentation

Eli Bendersky report at bugs.python.org
Thu Sep 1 08:17:12 CEST 2011

Eli Bendersky <eliben at gmail.com> added the comment:


"but using ints instead of flags is discouraged (see #11957).  OTOH there's no re.NOFLAGS flag that can be used instead."

Indeed, there's no re.NOFLAGS, and as I mentioned the 3k docs mention 0 as the default value, thus (in a way) encouraging passing the numeric value. 

Perhaps re.NOFLAGS should be added (at least in 3.3)? The docs can then be modified to specify it as the default value of 'flags' instead of 0.


Python tracker <report at bugs.python.org>

More information about the docs mailing list