freezable¤
Freezable objects (can be made read only).
FreezableMap ¤
FreezableMap(*, read_only, **kwargs)
Bases: MutableMapping[str, VT]
A key-value map that can be made read only.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
read_only
|
bool
|
Whether the mapping is initially in read-only mode (frozen). |
required |
kwargs
|
VT
|
All other keyword arguments are used to create the underlying map object. |
{}
|
Source code in src/msl/io/freezable.py
17 18 19 20 21 22 23 24 25 |
|
clear ¤
clear()
Maybe remove all items from the map, only if the map is not in read-only mode.
Source code in src/msl/io/freezable.py
58 59 60 61 |
|
items ¤
items()
keys ¤
keys()
values ¤
values()
ValuesView[VT] — Returns a view of the map's values.
Source code in src/msl/io/freezable.py
67 68 69 |
|