Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
main
Function · 0.45
test_rerun_with_missing_workflow_execution_id
Method · 0.45
python_action_wrapper.py
File · 0.45
_run_chain
Method · 0.45
remove_trigger
Method · 0.45
get_sensors_partitioner
Function · 0.45
st2_runner_python_distribution
Function · 0.45
st2_component_python_distribution
Function · 0.45
st2_pack_archive
Function · 0.45
st2_shell_sources_and_resources
Function · 0.45
st2_logging_conf_files
Function · 0.45
st2_logging_conf_file
Function · 0.45
Calls
1
discard
Method · 0.95
Tested by
5
test_rerun_with_missing_workflow_execution_id
Method · 0.36
test_update_rule_missing_id_in_body
Method · 0.36
test_get_2_level_descendants_sorted
Method · 0.36
get
Method · 0.36
test_fast_deepcopy_dict_success
Method · 0.36