[issue35043] functools.reduce doesn't work properly with itertools.chain
Josh Rosenberg
report at bugs.python.org
Tue Oct 23 21:42:55 EDT 2018
Josh Rosenberg <shadowranger+python at gmail.com> added the comment:
Blech. Copy'n'paste error in last post:
a = list(itertools.chain.from_iterable(*my_list))
should be:
a = list(itertools.chain.from_iterable(my_list))
(Note removal of *, which is the whole point of from_iterable)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35043>
_______________________________________
More information about the Python-bugs-list
mailing list