[Python-3000-checkins] r60206 - in python/branches/py3k: Doc/library/functions.rst Doc/library/itertools.rst Lib/heapq.py Lib/test/test_builtin.py Lib/test/test_iter.py Lib/test/test_itertools.py Misc/NEWS Modules/itertoolsmodule.c Python/bltinmo
Guido van Rossum
guido at python.org
Wed Jan 23 00:48:16 CET 2008
On Jan 22, 2008 3:25 PM, raymond.hettinger
<python-3000-checkins at python.org> wrote:
> Author: raymond.hettinger
> Date: Wed Jan 23 00:25:35 2008
> New Revision: 60206
>
> Modified:
> python/branches/py3k/Doc/library/functions.rst
> python/branches/py3k/Doc/library/itertools.rst
> python/branches/py3k/Lib/heapq.py
> python/branches/py3k/Lib/test/test_builtin.py
> python/branches/py3k/Lib/test/test_iter.py
> python/branches/py3k/Lib/test/test_itertools.py
> python/branches/py3k/Misc/NEWS
> python/branches/py3k/Modules/itertoolsmodule.c
> python/branches/py3k/Python/bltinmodule.c
> Log:
> Replace map(None, *iterables) with zip(*iterables).
Cool!
(a) This should be easy to backport to 2.6 -- in -3 mode map() and
imap() should warn if the func argument is None.
(b) What about filter(None, ... )?
(c) What about map(None, one_iterable)? This doesn't return the same
thing as zip(one_iterable) -- it returns the same as
list(one_iterable).
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000-checkins
mailing list