sanest icon indicating copy to clipboard operation
sanest copied to clipboard

read-only dict/list

Open wbolster opened this issue 8 years ago • 1 comments

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).

wbolster avatar Jul 01 '17 21:07 wbolster

see #13

wbolster avatar Feb 19 '18 18:02 wbolster