[Python-3000] PEP 3106: Revamping dict.keys(), .values() and .items() (original) (raw)

Guido van Rossum guido at python.org
Sat Dec 23 06:49:08 CET 2006


On 12/19/06, Guido van Rossum <guido at python.org> wrote:

I've written a quick version of PEP 3106, which expresses my ideas about how the dict methods to access keys, values and items should be redone.

Thanks for all the comments. The new version is in svn: http://svn.python.org/view/peps/trunk/pep-3106.txt?view=markup

At some point it will appear on python.org: http://python.org/dev/peps/pep-3106/

Most issues brought up are either resolved or clarified in the new PEP, or explicitly added as open issues. I have strawman answers for most open issues except for the class names, which I'll leave up to whoever wants to implement this (except I don't like Neal's suggestion to name them dict.Keys etc.; that's a rather Javaesque use of a class as a namespace that feels unpythonic to me. OTOH the collections module seems a fine resting place.)

Some specific answers to issues brought up that you may not easily find back in the new PEP, and some new (perhaps off-topic) thoughts:

If I left your specific suggestion or question unaddressed or unanswered, please send it again (after re-reading the PEP, of course).

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-3000 mailing list