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 bquinlan
Recipients bquinlan, cool-RR, ethan.furman, jnoller, paul.moore, pitrou, sbt
Date 2015-05-15.03:29:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431660559.37.0.607536351567.issue24195@psf.upfronthosting.co.za>
In-reply-to
Content
This feature seems unnecessary to me but couldn't the implementation be simplified to work in terms of map? i.e. (pseudocode):

def filter(self, fn, iterable, timeout=None):
  l = list(iterable)
  return (item for (item, keep) in zip(l, self.map(fn, l, timeout)) if keep)
History
Date User Action Args
2015-05-15 03:29:19bquinlansetrecipients: + bquinlan, paul.moore, pitrou, jnoller, cool-RR, ethan.furman, sbt
2015-05-15 03:29:19bquinlansetmessageid: <1431660559.37.0.607536351567.issue24195@psf.upfronthosting.co.za>
2015-05-15 03:29:19bquinlanlinkissue24195 messages
2015-05-15 03:29:19bquinlancreate