On Jan 22, 2008 3:25 PM, raymond.hettinger <python-3000-checkins@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/) _______________________________________________ Python-3000-checkins mailing list Python-3000-checkins@python.org http://mail.python.org/mailman/listinfo/python-3000-checkins