[issue43838] There is a way to access an underlying mapping in MappingProxyType

Nick Coghlan report at bugs.python.org
Sat Aug 7 04:52:38 EDT 2021


Nick Coghlan <ncoghlan at gmail.com> added the comment:

That resolution makes sense to me as well.

Should we make a note in the documentation for https://docs.python.org/3/library/types.html#types.MappingProxyType that the "read-only" protection is to guard against *accidental* modification, not against active attempts to subvert the protection?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43838>
_______________________________________


More information about the Python-bugs-list mailing list