MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / replace

Method replace

test/orm/test_collection.py:1812–1814  ·  view source on GitHub ↗
(self, arg, entity, **kw)

Source from the content-addressed store, hash-verified

1810
1811 @collection.replaces(2)
1812 def replace(self, arg, entity, **kw):
1813 self.data.insert(0, entity)
1814 return self.data.pop()
1815
1816 @collection.removes_return()
1817 def pop(self, key):

Calls 2

insertMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected