feature request: mul

Mike Rovner mike at bindkey.com
Wed Jun 11 13:33:12 EDT 2003


"Michele Simionato" <mis6 at pitt.edu> wrote in message
news:2259b0e2.0306110833.24b998cd at posting.google.com...

> if condition[0] or condition[1] or ....  or condition[42]:
>     dosomething()

from predicates import Any, All

if Any(condition):

> if condition[0] and condition[1] and ....  and condition[42]:
>     dosomething()

if All(condition):

See Predicates http://py.vaults.ca/apyllo2.py/D857386335

WBR,
Mike








More information about the Python-list mailing list