New submission from Piotr Majkrzak:

In documentation 
https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.Executor.map
 is writen that this fucntion is equivalent to the builtin map. But it is not 
true due to the fact that it is not lazy evalueded. The reason is in 
https://hg.python.org/cpython/file/0893b9ee44ea/Lib/concurrent/futures/_base.py#l548
 where the full list of features is created.

I don't find any reasonable solutions, but in my case following code was 
suitable.
https://gist.github.com/06bbd83eccd4083c68d0

----------
components: Library (Lib)
messages: 234433
nosy: majkrzak
priority: normal
severity: normal
status: open
title: concurrent.futures.Executor.map is not equivalent to map.
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23289>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to