[docs] map objects are not lists
Mike Hoy
mike at saguaroscuba.com
Sat Sep 29 16:54:48 CEST 2012
>
> In other words, the map function returns a map object, not a list object,
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> MAP = map(lambda x: x**2, range(10))
>>> type(MAP)
<type 'list'>
>>>
It seems to me that it does return a list object. Am I understanding
this correctly? If not, please clarify.
Thanks,
Mike Hoy
More information about the docs
mailing list