Performance of list comprehensions vs. map

Neil Schemenauer nas at python.ca
Thu Sep 6 11:17:09 EDT 2001


Alex Martelli wrote:
> I think one key issue is: map requires its sequence arguments to
> support len()

It won't in 2.2.  Any object that supports the iteration protocol will
do (thanks to Tim).  

  Neil




More information about the Python-list mailing list