[Python-3000] Python 3000 Status Update (Long!)

Georg Brandl g.brandl at gmx.net
Wed Jun 20 21:14:17 CEST 2007


Christian Heimes schrieb:
> 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.

Well, not everything that's planned is implemented yet in Py3k.
So, you should really believe the *plans* rather than the *branch*.

Georg



More information about the Python-3000 mailing list