MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __before_pop

Function __before_pop

lib/sqlalchemy/orm/collections.py:1071–1075  ·  view source on GitHub ↗

An event which occurs on a before a pop() operation occurs.

(collection, _sa_initiator=None)

Source from the content-addressed store, hash-verified

1069
1070
1071def __before_pop(collection, _sa_initiator=None):
1072 """An event which occurs on a before a pop() operation occurs."""
1073 executor = collection._sa_adapter
1074 if executor:
1075 executor.fire_pre_remove_event(_sa_initiator)
1076
1077
1078def _list_decorators() -> Dict[str, Callable[[_FN], _FN]]:

Callers 2

popFunction · 0.85
popitemFunction · 0.85

Calls 1

fire_pre_remove_eventMethod · 0.45

Tested by

no test coverage detected