<div dir="ltr"><div>I'd like to move `Executor.filter` forward, if that's possible. Can we get more people on the list to express their opinion about whether `Executor.filter` should be added to the stdlib? (See my implementation in a previous message on this thread.)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 7, 2015 at 6:56 AM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2 May 2015 at 19:25, Ram Rachum <<a href="mailto:ram@rachum.com">ram@rachum.com</a>> wrote:<br>
> Okay, I implemented it. Might be getting something wrong because I've never<br>
> worked with the internals of this module before.<br>
<br>
</span>I think this is sufficiently tricky to get right that it's worth<br>
adding filter() as a parallel to the existing map() API.<br>
<br>
However, it did raise a separate question for me: is it currently<br>
possible to use Executor.map() and the as_completed() module level<br>
function together? Unless I'm missing something, it doesn't look like<br>
it, as map() hides the futures from the caller, so you only have<br>
something to pass to as_completed() if you invoke submit() directly.<br>
<br>
Cheers,<br>
Nick.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Nick Coghlan | <a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a> | Brisbane, Australia<br>
</font></span></blockquote></div><br></div>