[New-bugs-announce] [issue23289] concurrent.futures.Executor.map is not equivalent to map.

Piotr Majkrzak report at bugs.python.org
Wed Jan 21 13:43:00 CET 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue23289>
_______________________________________


More information about the New-bugs-announce mailing list