MCPcopy Index your code
hub / github.com/StackStorm/st2 / pop

Method pop

st2client/st2client/utils/types.py:66–71  ·  view source on GitHub ↗
(self, last=True)

Source from the content-addressed store, hash-verified

64 curr = curr[1]
65
66 def pop(self, last=True):
67 if not self:
68 raise KeyError("set is empty")
69 key = self.end[1][0] if last else self.end[2][0]
70 self.discard(key)
71 return key
72
73 def __repr__(self):
74 if not self:

Callers 15

decorateFunction · 0.45
discardMethod · 0.45
formatMethod · 0.45
formatMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

discardMethod · 0.95

Tested by

no test coverage detected