7 ms·
http://stackoverflow.com/questions/340850/python-3-0-dict-methods-return-views-why http://stackoverflow.com/questions/340850/python-3-0-dict-me... Views are li
by e12e 14y ago
http://stackoverflow.com/questions/340850/python-3-0-dict-methods-return-views-why http://stackoverflow.com/questions/340850/python-3-0-dict-me...
Views are lighter than a full copy of a list, yet behaves like a list (eg: supports `key in view`).
[edit] Also, this seems to be the relevant PEP:
http://www.python.org/dev/peps/pep-3106/ http://www.python.org/dev/peps/pep-3106/