MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / update

Method update

lib/sqlalchemy/util/_collections_cy.py:161–169  ·  view source on GitHub ↗
(self, *iterables: Iterable[_T])

Source from the content-addressed store, hash-verified

159
160 # @cython.ccall # cdef function cannot have star argument
161 def update(self, *iterables: Iterable[_T]) -> None:
162 for iterable in iterables:
163 for element in iterable:
164 # inline of add. mainly for python, since for cython we
165 # could create an @cfunc @inline _add function that would
166 # perform the same
167 if element not in self:
168 self._list.append(element)
169 set.add(self, element)
170
171 def __ior__(
172 self: OrderedSet[Union[_T, _S]], iterable: AbstractSet[_S]

Callers 12

for_update_clauseMethod · 0.95
for_update_clauseMethod · 0.95
reflectMethod · 0.95
__ior__Method · 0.95
test_updateMethod · 0.95
_from_listMethod · 0.45
unionMethod · 0.45
symmetric_differenceMethod · 0.45
unionMethod · 0.45
updateMethod · 0.45
symmetric_differenceMethod · 0.45

Calls 2

appendMethod · 0.45
addMethod · 0.45

Tested by 2

test_updateMethod · 0.76