[docs] [issue24195] Add `Executor.filter` to concurrent.futures
Brian Quinlan
report at bugs.python.org
Mon Jun 8 16:31:54 CEST 2015
Brian Quinlan added the comment:
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)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24195>
_______________________________________
More information about the docs
mailing list