[Python-ideas] Allow filter(items)

Raymond Hettinger raymond.hettinger at gmail.com
Tue Aug 6 08:34:48 CEST 2013


On Aug 5, 2013, at 10:32 AM, Markus Unterwaditzer <markus at unterwaditzer.net> wrote:

> -0, for reasons already mentioned. While i agree that filter(None, items) is counterintuitive, filter(bool, items) looks very readable to me.
> 
> I think modifying the behavior of filter like this will at most trick users into thinking they need to specify the iterable first.

I concur.  Put me down for a -1.


Raymond
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130805/67b93977/attachment.html>


More information about the Python-ideas mailing list