[Python-ideas] Allow filter(items)

Terry Reedy tjreedy at udel.edu
Wed Aug 7 01:47:41 CEST 2013


On 8/6/2013 4:23 AM, Serhiy Storchaka 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 ...`?

No and irrelevant. This is simply not a parallel situation.

-- 
Terry Jan Reedy




More information about the Python-ideas mailing list