Philipp Pagel <[EMAIL PROTECTED]> wrote:

> Another way to go instead of using sets, although probably less elegant:
> 
>>>> True in [x in t1 for x in t2]
> True
>>>> True in [x in t1 for x in t3]
> True
>>>> True in [x in t1 for x in t4]
> False
>>>> True in [x in t1 for x in t5]
> False

Slightly more elegant for Python 2.5 users:

>>> any(x in t1 for x in t2)
True
>>> any(x in t1 for x in t3)
True
>>> any(x in t1 for x in t4)
False
>>> any(x in t1 for x in t5)
False


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to