Real-world use cases for map's None fill-in feature?

Raymond Hettinger python at rcn.com
Fri Jan 13 05:27:19 CET 2006


[Paul Rubin]
> ISTR there's also a plan to eliminate map in Python 3.0 in favor of
> list comprehensions.  That would get rid of the possibility of using
> map(None...) instead of izip_longest.  This needs to be thought through.

Not to fear.  If map() eventually loses its built-in status, it will
almost certainly reappear in the functional module.  Also, if Py3.0
changes the balance of needs and tools, I will certainly adapt the
itertools module as needed.




More information about the Python-list mailing list