[Python-ideas] Allow filter(items)

Serhiy Storchaka storchaka at gmail.com
Tue Aug 6 10:23:05 CEST 2013


06.08.13 10:34, Chris Angelico написав(ла):
> Okay. Sounds like there's already an answer to those who want more
> readability: Just use filter(bool,...). Maybe I'm just not seeing the
> obvious problem with this version?

Are `if bool(...)` or `if bool(...) == True` more readable than `if ...`?




More information about the Python-ideas mailing list