This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author daniel.urban
Recipients daniel.urban
Date 2010-12-05.16:19:04
SpamBayes Score 0.00012351286
Marked as misclassified No
Message-id <1291565946.17.0.111097012254.issue10630@psf.upfronthosting.co.za>
In-reply-to
Content
The keys, values and items methods of dict_proxy return a list, while dict.keys, etc. return dictionary views (dict_keys, etc.). dict_proxy is used as the __dict__ attribute of classes. This is documented at http://docs.python.org/dev/py3k/reference/datamodel.html under "Custom classes" as "Special attributes: ... __dict__ is the dictionary containing the class’s namespace ..." While __dict__ is not actually dict, it probably should behave like a dict as close as possible. For example set operations work for dict.keys(), but not for dict_proxy.keys().
History
Date User Action Args
2010-12-05 16:19:06daniel.urbansetrecipients: + daniel.urban
2010-12-05 16:19:06daniel.urbansetmessageid: <1291565946.17.0.111097012254.issue10630@psf.upfronthosting.co.za>
2010-12-05 16:19:04daniel.urbanlinkissue10630 messages
2010-12-05 16:19:04daniel.urbancreate