Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zahlman
· 11mo ago · 0 comments
> You can already do something similar
Only if you deny access to the underlying real dict.
Comments
[–]
ali_m
11mo 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).