[Python-3000] Python 3000 Status Update (Long!)
Christian Heimes
lists at cheimes.de
Wed Jun 20 20:40:19 CEST 2007
Alex Martelli wrote:
> No, in 3.0 they'll return iterables -- you really SHOULD read Guido's
> blog entry referred to at the top of this thread,
> <http://www.artima.com/weblogs/viewpost.jsp?thread=208549>, before
> discussing Python 3.0 issues.
I read it. I also wasn't sure if map returns a special iterable like
dict.keys() or a list so I tried it before I wrote my posting:
Python 3.0x (p3yk:56022, Jun 18 2007, 21:10:13)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> map(str, range(5))
['0', '1', '2', '3', '4']
>>> type(map(str, range(5)))
<type 'list'>
It looks like an ordinary list to me.
Christian
More information about the Python-3000
mailing list