[issue24195] Add `Executor.filter` to concurrent.futures

Ram Rachum report at bugs.python.org
Sat Jun 6 17:30:54 CEST 2015


Ram Rachum added the comment:

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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24195>
_______________________________________


More information about the Python-bugs-list mailing list