syside.QualifiedName

class QualifiedName

Bases: collections.abc.Sequence[str]

A sequence of qualified name segments that stringifies with unrestricted names as needed. Unlike string, this allows querying segments in a qualified name without having to parse it again, and is cheaper to construct as string conversion is performed only when needed.

Initialization

Default constructor

__len__() int
__bool__() bool

Check whether the vector is nonempty

__repr__() str
__getitem__(index: int) str
__getitem__(index: slice) syside.QualifiedName
clear() None

Remove all items from list.

append(arg: str, /) None

Append arg to the end of the list.

insert(arg0: int, arg1: str, /) None

Insert object arg1 before index arg0.

pop(index: int = -1) str

Remove and return item at index (default last).

extend(arg: syside.QualifiedName, /) None

Extend self by appending elements from arg.

__setitem__(arg0: int, arg1: str, /) None
__setitem__(arg0: slice, arg1: syside.QualifiedName, /) None
__delitem__(arg: int, /) None
__delitem__(arg: slice, /) None
__iter__() Iterator[str]
__str__() str
__slots__ = ()
__abc_tpflags__ = None
__contains__(value)
__reversed__()
index(value, start=0, stop=None)

S.index(value, [start, [stop]]) -> integer – return first index of value. Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.

count(value)

S.count(value) -> integer – return number of occurrences of value

classmethod __subclasshook__(C)
__class_getitem__ = 'classmethod(...)'