[Python-ideas] Parametrized any() and all() ?

Tarek Ziadé tarek at ziade.org
Wed Jan 16 11:44:13 CET 2013


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


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /