[Python-ideas] Allow filter(items)
Chris Angelico
rosuav at gmail.com
Tue Aug 6 10:25:32 CEST 2013
On Tue, Aug 6, 2013 at 9:23 AM, Serhiy Storchaka <storchaka at gmail.com> wrote:
> 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 ...`?
They're more readable than 'if None(...)' is.
ChrisA
More information about the Python-ideas
mailing list