class documentation

class MutableSet(Mutable, set):

View In Hierarchy

A set type that implements .Mutable.

The .MutableSet object implements a set that will emit change events to the underlying mapping when the contents of the set are altered, including when values are added or removed.

Note that .MutableSet does not apply mutable tracking to the values themselves inside the set. Therefore it is not a sufficient solution for the use case of tracking deep changes to a recursive mutable structure. To support this use case, build a subclass of .MutableSet that provides appropriate coercion to the values placed in the dictionary so that they too are "mutable", and emit events up to their parent structure.

New in version 1.1.

See Also

.MutableDict

.MutableList

Class Method coerce Convert plain set to instance of this class.
Method add Undocumented
Method clear Undocumented
Method difference​_update Undocumented
Method discard Undocumented
Method intersection​_update Undocumented
Method pop Undocumented
Method remove Undocumented
Method symmetric​_difference​_update Undocumented
Method update Undocumented
Method __getstate__ Undocumented
Method __iand__ Undocumented
Method __ior__ Undocumented
Method __isub__ Undocumented
Method __ixor__ Undocumented
Method __reduce​_ex__ Undocumented
Method __setstate__ Undocumented

Inherited from Mutable:

Class Method as​_mutable Associate a SQL type with this mutable Python type.
Class Method associate​_with Associate this wrapper with all future mapped columns of the given type.
Class Method associate​_with​_attribute Establish this type as a mutation listener for the given mapped descriptor.
Method changed Subclasses should call this method whenever change events occur.

Inherited from MutableBase (via Mutable):

Class Method ​_get​_listen​_keys Given a descriptor attribute, return a set() of the attribute keys which indicate a change in the state of this attribute.
Class Method ​_listen​_on​_attribute Establish this type as a mutation listener for the given mapped descriptor.
Property ​_parents Dictionary of parent object's .InstanceState->attribute name on the parent.
@classmethod
def coerce(cls, index, value):
Convert plain set to instance of this class.
def add(self, elem):

Undocumented

def clear(self):

Undocumented

def difference_update(self, *arg):

Undocumented

def discard(self, elem):

Undocumented

def intersection_update(self, *arg):

Undocumented

def pop(self, *arg):

Undocumented

def remove(self, elem):

Undocumented

def symmetric_difference_update(self, *arg):

Undocumented

def update(self, *arg):

Undocumented

def __getstate__(self):

Undocumented

def __iand__(self, other):

Undocumented

def __ior__(self, other):

Undocumented

def __isub__(self, other):

Undocumented

def __ixor__(self, other):

Undocumented

def __reduce_ex__(self, proto):

Undocumented

def __setstate__(self, state):

Undocumented