pyds.Sequence1D

class pyds.Sequence1D(*values)

Bases: pyds.Value, collections.abc.MutableSequence

Represents a 1D PDS sequence value.


Methods

Sequence1D.insert(index, value)

Insert value value at index index.

value must be an instance of Scalar, otherwise raise TypeError.


Special Methods

Sequence1D.__getitem__(index)

Return value at index index.

Sequence1D.__setitem__(index, value)

Note

See insert().

Sequence1D.__delitem__(index)

Remove the value at index index.

Sequence1D.__len__()

Return the number of values in the sequence.

Sequence1D.__iter__()

Return an iterator that iterates over the values in the sequence.

Sequence1D.__str__()

Return a PDS serialized string (str) representing the object.

Called by str().

Raises
  • RuntimeError

    If the sequence does not contain at least 1 value.