navigate.model.features.feature_related_functions.SharedList
- class navigate.model.features.feature_related_functions.SharedList(value: Iterable, name: Optional[str] = None)
Bases:
listCustom list class with a name attribute for sharing data.
This class extends the built-in list class to provide an additional attribute called ‘name’ for identifying and sharing lists of data. It is particularly useful when sharing data between different parts of a program.
Notes
This class is designed to be used when you need to pass and share lists of data between different components of a program.
The ‘__name__’ attribute can be used to give the shared list a meaningful name for easier identification.
- __init__(value: Iterable, name: Optional[str] = None) → None
Initialize a SharedList object.
- Parameters:
value (Iterable) – Initial values for the list (default is an empty list).
name (Optional[str]) – A name to identify the shared list (default is
shared_list__).
Methods
__init__(value[, name])Initialize a SharedList object.