class documentation

class _ListenerCollection(_CompoundListener[_ET]): (source)

View In Hierarchy

Instance-level attributes on instances of :class:`._Dispatch`. Represents a collection of listeners. As of 0.7.9, _ListenerCollection is only first created via the _EmptyListener.for_modify() method.

Method __init__ Undocumented
Method append Undocumented
Method clear Undocumented
Method for_modify Return an event collection which can be modified.
Method insert Undocumented
Method remove Undocumented
Class Variable __slots__ Undocumented
Instance Variable listeners Undocumented
Instance Variable name Undocumented
Instance Variable parent Undocumented
Instance Variable parent_listeners Undocumented
Instance Variable propagate Undocumented
Method _update Populate from the listeners in another :class:`_Dispatch` object.
Instance Variable _exec_once Undocumented
Instance Variable _exec_w_sync_once Undocumented

Inherited from _CompoundListener:

Method __bool__ Undocumented
Method __call__ Execute this event.
Method __contains__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method exec_once Execute this event, but only if it has not been executed already for this collection.
Method exec_once_unless_exception Execute this event, but only if it has not been executed already for this collection, or was called by a previous exec_once_unless_exception call and raised an exception.
Method _exec_once_impl Undocumented
Method _exec_w_sync_on_first_run Execute this event, and use a mutex if it has not been executed already for this collection, or was called by a previous _exec_w_sync_on_first_run call and raised an exception.
Method _memoized_attr__exec_once_mutex Undocumented
Method _set_asyncio Undocumented
Instance Variable _exec_once_mutex Undocumented

Inherited from _InstanceLevelDispatch (via _CompoundListener):

Method _adjust_fn_spec Undocumented

Inherited from RefCollection (via _CompoundListener, _InstanceLevelDispatch):

Class Variable ref Undocumented
Method _memoized_attr_ref Undocumented

Inherited from MemoizedSlots (via _CompoundListener, _InstanceLevelDispatch, RefCollection):

Method __getattr__ Undocumented
Method _fallback_getattr Undocumented
def __init__(self, parent: _ClsLevelDispatch[_ET], target_cls: Type[_ET]): (source)

Undocumented

def append(self, event_key: _EventKey[_ET], propagate: bool): (source)
def clear(self): (source)

Undocumented

def for_modify(self, obj: _DispatchCommon[_ET]) -> _ListenerCollection[_ET]: (source)

Return an event collection which can be modified. For _ListenerCollection at the instance level of a dispatcher, this returns self.

def insert(self, event_key: _EventKey[_ET], propagate: bool): (source)
def remove(self, event_key: _EventKey[_ET]): (source)

Undocumented

propagate = (source)

Undocumented

def _update(self, other: _ListenerCollection[_ET], only_propagate: bool = True): (source)

Populate from the listeners in another :class:`_Dispatch` object.