John Machin sjmachin at
Wed Jun 24 03:18:47 EDT 2009

On Jun 23, 8:35 am, 1x7y2z9 <1x7y... at> wrote:
> I am currently using python v2.5.2.
> Not sure if this is defined in a later version, but it would be nice
> to define re.NONE = 0 in the re module.  This would be useful in cases
> such as:
> flags = re.DOTALL if dotall else re.NONE
> Also useful for "building up" flags by ORing with other flags.


0 is even more useful. YAGNI.

BTW everybody try typing NONE a few times fast ... if your fingers
don't fight your brain and produce None anyway, you haven't been using
Python long enough :-)

More information about the Python-list mailing list