A Mapping Proxy Restricts Writes Through a View, Not Changes to Its Source
python
dev.to
A read-only interface can still expose changing data. If code hands a mapping proxy to a consumer and then mutates the original dictionary, the consumer sees those updates. Calling that proxy a frozen configuration snapshot would promise a property the example does not provide. Python's MappingProxyType reference describes a read-only, dynamic mapping view. The local fixtures below separate three questions: can a caller assign through the proxy, can the source owner replace a binding, and can e