This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author leewz
Recipients leewz
Date 2015-12-11.15:02:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449846120.95.0.0940124187557.issue25840@psf.upfronthosting.co.za>
In-reply-to
Content
Meaning:

    filter(False, lst)
    == (x for x in lst if not x)
    == itertools.filterfalse(None, lst)

I understand that it is a very minor enhancement, and with not much benefit. I just happened to think about it, and wondered why it didn't already exist. I figured it wouldn't hurt to put the idea out here.

(If anyone is interested, I was looking into ways that filter/map/itertools could "unwrap" each other at the C level to improve composition of generators, inspired by the functools.partial optimization.)
History
Date User Action Args
2015-12-11 15:02:01leewzsetrecipients: + leewz
2015-12-11 15:02:00leewzsetmessageid: <1449846120.95.0.0940124187557.issue25840@psf.upfronthosting.co.za>
2015-12-11 15:02:00leewzlinkissue25840 messages
2015-12-11 15:02:00leewzcreate