[Python-Dev] product()
Michael Chermside
mcherm at mcherm.com
Tue Oct 28 10:44:38 EST 2003
More information about the Python-Dev mailing list
Tue Oct 28 10:44:38 EST 2003
- Previous message: [Python-Dev] RE: cloning iterators again
- Next message: [Python-Dev] Decimal.py in sandbox
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nick Coghlan writes: > >>> if all(pred(x) for x in values): pass # alltrue > >>> if any(pred(x) for x in values): pass # anytrue > >>> if any(not pred(x) for x in values): pass # anyfalse > >>> if all(not pred(x) for x in values): pass # allfalse > > The names from the earlier thread do read nicely. . . +1 Very nicely indeed. -- Michael Chermside
- Previous message: [Python-Dev] RE: cloning iterators again
- Next message: [Python-Dev] Decimal.py in sandbox
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list