MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / pop

Method pop

lib/sqlalchemy/util/_collections_cy.py:124–130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 self._list.remove(element)
123
124 def pop(self) -> _T:
125 try:
126 value = self._list.pop()
127 except IndexError:
128 raise KeyError("pop from an empty set") from None
129 set.remove(self, value)
130 return value
131
132 def insert(self, pos: cython.Py_ssize_t, element: _T, /) -> None:
133 if element not in self:

Callers 11

test_modifyMethod · 0.95
find_cyclesFunction · 0.45
became_legacy_20Function · 0.45
warnedFunction · 0.45
walk_subclassesFunction · 0.45
class_hierarchyFunction · 0.45
resetMethod · 0.45
_reset_memoizationsMethod · 0.45
goFunction · 0.45
_getMethod · 0.45

Calls 1

removeMethod · 0.45

Tested by 1

test_modifyMethod · 0.76