[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Florian Mayer
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 ___

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Benjamin Peterson
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? --

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Florian Mayer
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. --

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Benjamin Peterson
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

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Florian Mayer
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 ___

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-26 Thread Benjamin Peterson
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

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-25 Thread Georg Brandl
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

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-25 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: -- nosy: +segfaulthunter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7203 ___ ___ Python-bugs-list

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-25 Thread Florian Mayer
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