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 Dennis Sweeney
Recipients Dennis Sweeney, methane, remi.lapeyre, rhettinger, serhiy.storchaka
Date 2020-06-09.00:36:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
PR 20749 gives each dict view access to a mappingproxy for the original dict, although I don't know if that defeats the original purpose.

It might be hard to sensibly make MappingProxy(d).items() return something other than d.items(), since this is already the behavior for user-defined classes:

>>> class A:
    def __getitem__(self, key):
        return "value"
    def items(self):
        return 17

>>> from types import MappingProxyType
>>> MappingProxyType(A()).items()
Date User Action Args
2020-06-09 00:36:03Dennis Sweeneysetrecipients: + Dennis Sweeney, rhettinger, methane, serhiy.storchaka, remi.lapeyre
2020-06-09 00:36:03Dennis Sweeneysetmessageid: <>
2020-06-09 00:36:03Dennis Sweeneylinkissue40890 messages
2020-06-09 00:36:03Dennis Sweeneycreate