re.NONE

1x7y2z9 1x7y2z9 at gmail.com
Mon Jun 22 18:35:28 EDT 2009


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.

Thanks.



More information about the Python-list mailing list