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

Method replace

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

Source from the content-addressed store, hash-verified

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

Calls 2

insertMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected