C-like assignment expression?
cokofreedom at gmail.com
cokofreedom at gmail.com
Wed May 21 10:28:17 EDT 2008
On May 21, 4:09 pm, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
> cokofree... at gmail.com wrote:
>
> >> And wastes time. regular expressions can become expensive to match -
> >> doing it twice might be hurtful.
>
> >> Diez
>
> > match = (my_re1.match(line) or my_re2.match(line)) or
> > my_re3.match(line)
>
> How do you know *which* of the three has matched then?
>
> Diez
Depends if the OP wants to know that...
More information about the Python-list
mailing list