[Python-3000] Thoughts on dictionary views
Guido van Rossum
guido at python.org
Wed Feb 21 00:51:01 CET 2007
On 2/20/07, Steven Bethard <steven.bethard at gmail.com> wrote:
> Just to clarfiy, you're suggesting that we still change .keys()
> .values() and .items() to iterators, right?
But this isn't really easier to explain to noobs than views, is it?
What's the advantage of
>>> {}.keys()
<dictionary-keyiterator object at 0xb7f82f60>
>>>
over
>>> {}.keys()
<dict_keys object at 0xb7fb6540>
>>>
???
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list