Y
Hacker News
new
|
ask
|
show
|
jobs
by
zahlman
188 days ago
> You can already do something similar
Only if you deny access to the underlying real dict.
1 comments
ali_m
188 days ago
Yes, this only prevents the callee from mutating it, it can't provide a strong guarantee that the underlying mapping won't be changed upstream (and hence MappingProxyType can't be washable).
link