class documentation

class _CompoundListener(_InstanceLevelDispatch):

Known subclasses: sqlalchemy.event.attr._JoinedListener, sqlalchemy.event.attr._ListenerCollection

View In Hierarchy

Undocumented

Method __bool__ Undocumented
Method __call__ Execute this event.
Method __iter__ Undocumented
Method __len__ Undocumented
Method ​_exec​_once​_impl Undocumented
Method ​_exec​_w​_sync​_on​_first​_run No summary
Method ​_memoized​_attr​_​_exec​_once​_mutex Undocumented
Method ​_set​_asyncio Undocumented
Method exec​_once Execute this event, but only if it has not been executed already for this collection.
Method exec​_once​_unless​_exception No summary
Class Variable __slots__ Undocumented
Instance Variable ​_exec​_once Undocumented
Instance Variable ​_exec​_once​_mutex Undocumented
Instance Variable ​_exec​_w​_sync​_once Undocumented

Inherited from _InstanceLevelDispatch:

Method ​_adjust​_fn​_spec Undocumented

Inherited from RefCollection (via _InstanceLevelDispatch):

Method ​_memoized​_attr​_ref Undocumented

Inherited from MemoizedSlots (via _InstanceLevelDispatch, RefCollection):

Method __getattr__ Undocumented
Method ​_fallback​_getattr Undocumented
def __bool__(self):

Undocumented

def __call__(self, *args, **kw):
Execute this event.
def __iter__(self):

Undocumented

def __len__(self):

Undocumented

def _exec_once_impl(self, retry_on_exception, *args, **kw):

Undocumented

def _exec_w_sync_on_first_run(self, *args, **kw):

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.

If _exec_w_sync_on_first_run was already called and didn't raise an exception, then a mutex is not used.

New in version 1.4.11.
def _memoized_attr__exec_once_mutex(self):

Undocumented

def _set_asyncio(self):

Undocumented

def exec_once(self, *args, **kw):
Execute this event, but only if it has not been executed already for this collection.
def exec_once_unless_exception(self, *args, **kw):

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.

If exec_once was already called, then this method will never run the callable regardless of whether it raised or not.

New in version 1.3.8.
_exec_once_mutex =

Undocumented

_exec_w_sync_once: bool =

Undocumented