any() and all() shorthand
Guilherme Polo
ggpolo at gmail.com
Mon Jan 7 13:48:28 EST 2008
2008/1/7, castironpi at gmail.com <castironpi at gmail.com>:
> any( iterab ) and all( iterab )
>
> as shorthand for reduce( operator.or_, iterab ) and
> reduce( operator.and_, iterab ).
>
> What do you think?
> --
> http://mail.python.org/mailman/listinfo/python-list
>
You are too late, any and all are built-in into python 2.5
--
-- Guilherme H. Polo Goncalves
More information about the Python-list
mailing list