Message245004
| Author |
bquinlan |
| Recipients |
bquinlan, cool-RR, docs@python, ethan.furman, jnoller, ncoghlan, paul.moore, pitrou, rhettinger, sbt |
| Date |
2015年06月08日.14:31:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1433773913.99.0.934479897228.issue24195@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Actually it immediately converts the iterable into a list. Recall:
def filter(self, fn, iterable, timeout=None):
l = list(iterable) # iterable => list
return (item for (item, keep) in zip(l, self.map(fn, l, timeout)) if keep) |
|