[Python-ideas] Allow filter(items)

Ethan Furman ethan at stoneleaf.us
Mon Aug 5 19:43:52 CEST 2013


On 08/05/2013 12:46 AM, Peter Otten wrote:
> filter(items)
>
> looks much cleaner than
>
> filter(None, items)

+1

`range` already behaves like this to support the common case.

--
~Ethan~


More information about the Python-ideas mailing list