MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __set

Function __set

lib/sqlalchemy/orm/collections.py:1042–1053  ·  view source on GitHub ↗

Run set events. This event always occurs before the collection is actually mutated.

(collection, item, _sa_initiator, key)

Source from the content-addressed store, hash-verified

1040
1041
1042def __set(collection, item, _sa_initiator, key):
1043 """Run set events.
1044
1045 This event always occurs before the collection is actually mutated.
1046
1047 """
1048
1049 if _sa_initiator is not False:
1050 executor = collection._sa_adapter
1051 if executor:
1052 item = executor.fire_append_event(item, _sa_initiator, key=key)
1053 return item
1054
1055
1056def __del(collection, item, _sa_initiator, key):

Callers 4

appendFunction · 0.85
insertFunction · 0.85
__setitem__Function · 0.85
addFunction · 0.85

Calls 1

fire_append_eventMethod · 0.45

Tested by

no test coverage detected