ro_dict#
- class caput.memdata.ro_dict(d=None)[source]#
Bases:
collections.abc.MappingA dict that is read-only to the user.
This class isn’t strictly read-only but it cannot be modified through the traditional dict interface. This prevents the user from mistaking this for a normal dictionary.
Provides the same interface for reading as the builtin python
dictbut no methods for writing.