[Python-Dev] Any reason that any()/all() do not take a predicate argument? (original) (raw)
Mikhail Glushenkov bbman at mail.ru
Sat Apr 15 09:30:26 CEST 2006
- Previous message: [Python-Dev] Any reason that any()/all() do not take a predicateargument?
- Next message: [Python-Dev] Any reason that any()/all() do not take a predicateargument?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Andrew Koenig <ark acm.org> writes:
How about this?
if any(x==5 for x in seq):
Cool! Thank you.
- Previous message: [Python-Dev] Any reason that any()/all() do not take a predicateargument?
- Next message: [Python-Dev] Any reason that any()/all() do not take a predicateargument?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]