On Jun 24, 5:18 pm, John Machin wrote:
> On Jun 23, 8:35 am, 1x7y2z9 <1x7y...@gmail.com> 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 a
On Jun 23, 8:35 am, 1x7y2z9 <1x7y...@gmail.com> 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
>
> Al
On Jun 22, 5:56 pm, Lawrence D'Oliveiro wrote:
> In message
> c77d-4a47-8cb4-7dd916d69...@s1g2000prd.googlegroups.com>, 1x7y2z9 wrote:
> > Not sure if this is defined in a later version, but it would be nice
> > to define re.NONE = 0 in the re module.
>
> Do so:
>
> re.NONE = 0
>
> Problem so
In message , 1x7y2z9 wrote:
> Not sure if this is defined in a later version, but it would be nice
> to define re.NONE = 0 in the re module.
Do so:
re.NONE = 0
Problem solved.
--
http://mail.python.org/mailman/listinfo/python-list
Rhodri wrote:
They aren't talking about None, they're talking about a hypothetical
re.NONE to use as a flag to re.match() and the like. There's no
issue with defining that to be 0, since it is the correct value!
Ah, I see. That makes more sense. Thanks. :]
(... I fail at sending to mailing list
Re-ordered to eliminate the top-posting.
On Tue, 23 Jun 2009 00:47:49 +0100, Xavier Ho wrote:
On Tue, Jun 23, 2009 at 9:43 AM, MRAB wrote:
1x7y2z9 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
1x7y2z9 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 othe