[Python-ideas] Parametrized any() and all() ? (original) (raw)
Tarek Ziadé tarek at ziade.org
Wed Jan 16 11:44:13 CET 2013
- Previous message: [Python-ideas] Parametrized any() and all() ?
- Next message: [Python-ideas] Parametrized any() and all() ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 1/16/13 11:33 AM, Laurens Van Houtven wrote:
Hey Tarek,
I would write that as any(x is None for x in it)
But here you're building yet another iterable to adapt it to any(), which seems to me overkill if we can just parametrized the loop in any()
Cheers Tarek
-- Tarek Ziadé · http://ziade.org · @tarek_ziade
- Previous message: [Python-ideas] Parametrized any() and all() ?
- Next message: [Python-ideas] Parametrized any() and all() ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]