sanest
sanest copied to clipboard
read-only dict/list
it may be a nice idea to have a read-only version of a (nested) dict/list to avoid unintended modifications.
something like this perhaps?
d = sanest.dict(...)
ro = d.read_only()
ro would be a read-only view on d. (cf. types.MappingProxy from the stdlib).
see #13