pyds.Set

class pyds.Set(*values)

Bases: pyds.Value, collections.abc.MutableSet

Represents a PDS set value.


Methods

Set.add(value)

Add value to the set.

Parameters
Raises
Set.discard(value)

Remove value from the set.


Special Methods

Set.__contains__(value)

Test if set contains value. Return True if it exits and False otherwise.

Set.__iter__()

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

Called by iter().

Set.__len__()

Return the number of values in the set.

Called by len().

Set.__str__()

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

Called by str().