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 _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com