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 cool-RR
Recipients bquinlan, cool-RR, docs@python, ethan.furman, jnoller, ncoghlan, paul.moore, pitrou, rhettinger, sbt
Date 2015-06-06.15:30:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433604654.09.0.439327042236.issue24195@psf.upfronthosting.co.za>
In-reply-to
Content
A problem I just realized with Brian's 2-line implementation of `filter`: It doesn't work for iterables which aren't sequences, since it attempts to exhaust the iterable twice. So if you have a non-sequence you'll have to make it into a sequence first.
History
Date User Action Args
2015-06-06 15:30:54cool-RRsetrecipients: + cool-RR, rhettinger, paul.moore, bquinlan, ncoghlan, pitrou, jnoller, docs@python, ethan.furman, sbt
2015-06-06 15:30:54cool-RRsetmessageid: <1433604654.09.0.439327042236.issue24195@psf.upfronthosting.co.za>
2015-06-06 15:30:54cool-RRlinkissue24195 messages
2015-06-06 15:30:53cool-RRcreate