MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __set

Function __set

lib/sqlalchemy/orm/collections.py:1094–1105  ·  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

1092
1093
1094def __set(collection, item, _sa_initiator, key):
1095 """Run set events.
1096
1097 This event always occurs before the collection is actually mutated.
1098
1099 """
1100
1101 if _sa_initiator is not False:
1102 executor = collection._sa_adapter
1103 if executor:
1104 item = executor.fire_append_event(item, _sa_initiator, key=key)
1105 return item
1106
1107
1108def __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