freezable¤
Freezable objects (can be made read only).
FreezableMap
¤
FreezableMap(*, read_only: bool, **kwargs: VT)
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() -> None
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
¤
keys
¤
values
¤
values() -> ValuesView[VT]
ValuesView[VT] — Returns a view of the map's values.
Source code in src/msl/io/freezable.py
67 68 69 | |