[Python-3000] Py3k release schedule worries
Nick Coghlan
ncoghlan at gmail.com
Tue Dec 19 10:07:50 CET 2006
Manuzhai wrote:
> Guido van Rossum wrote:
>> - make keys(), items(), values() return pseudo-sets/collections rather
>> than lists
>
> Great to see you're back on the Py3k thing (but Mondrian looks really
> cool!).
>
> I got the impression before that keys(), items() and values() would
> become generators (or iterators) that don't return the whole thing at
> once. Is that still correct, or is there some other thing you mean by
> pseudo-sets/collections? Sorry if I am the only one confused here.
A (long) while back we considered the implications of making them return pure
iterators and didn't like the answer we got (a *lot* of broken and hard-to-fix
code).
The answer we came up with was to return a set-style view of the original
collection rather than an actual iterator.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list