wildcard in tuples

Erik Max Francis max at alcyone.com
Sat Feb 17 22:07:00 EST 2001


cyberian bear wrote:

> Yep, that looks like just what i needed. but is there a way to modify
> those
> statements so that they can be used in 'if then ' statement. So it
> will go
> something like that:
> if (# of matched terms is greater than 0) :
>     do stuff

With the selectTuple function I wrote, which returns a list of matched
tuples, it would simply be:

    if selectTuple(list, matchingTuple):
        do stuff

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ In Heaven all the interesting people are missing.
\__/ Friedrich Nietzsche
    Computer science / http://www.alcyone.com/max/reference/compsci/
 A computer science reference.



More information about the Python-list mailing list