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   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to