any() and all() shorthand

castironpi at gmail.com castironpi at gmail.com
Mon Jan 7 13:43:23 EST 2008


any( iterab ) and all( iterab )

as shorthand for reduce( operator.or_, iterab ) and
reduce( operator.and_, iterab ).

What do you think?



More information about the Python-list mailing list