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

Method pop

st2common/st2common/util/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

mainFunction · 0.45
_run_chainMethod · 0.45
remove_triggerMethod · 0.45
get_sensors_partitionerFunction · 0.45
st2_pack_archiveFunction · 0.45
st2_logging_conf_filesFunction · 0.45
st2_logging_conf_fileFunction · 0.45

Calls 1

discardMethod · 0.95