Florian Mayer florma...@aim.com added the comment:
I dare to disagree on this being an adequate fix. Request to reopen.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7203
___
Benjamin Peterson benja...@python.org added the comment:
2009/10/27 Florian Mayer rep...@bugs.python.org:
Florian Mayer florma...@aim.com added the comment:
I dare to disagree on this being an adequate fix. Request to reopen.
What would you prefer?
--
Florian Mayer florma...@aim.com added the comment:
At least converting
map(None, a, b, ...)
to
map(lambda *xs: xs, a, b, ...)
I can understand if you prefer not to add the itertools.zip_longest
workaround, although that would be the correct translation, of course.
--
Benjamin Peterson benja...@python.org added the comment:
2009/10/27 Florian Mayer rep...@bugs.python.org:
Florian Mayer florma...@aim.com added the comment:
At least converting
map(None, a, b, ...)
to
map(lambda *xs: xs, a, b, ...)
Well, since that's not always correct, we should not
Florian Mayer florma...@aim.com added the comment:
When could this possibly be wrong, if I may ask?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7203
___
Benjamin Peterson benja...@python.org added the comment:
Fixed in r75734.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7203
New submission from Georg Brandl ge...@python.org:
Currently, ``map(None, a)`` is recognized and converted to ``list(a)``
which is correct but quite useless.
``map(None, a, b, ...)`` is not treated specially. An approximate
translation would be ``map(lambda *xs: xs, a, b, ...)`` which however
Changes by Florian Mayer florma...@aim.com:
--
nosy: +segfaulthunter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7203
___
___
Python-bugs-list
Florian Mayer florma...@aim.com added the comment:
A full fix would be
list(map(fun, *zip(*itertools.zip_longest(a, b, ...
and if fun is None
list(map(lambda *xs: xs, *zip(*itertools.zip_longest(a, b, ...
--
___
Python tracker