Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ handle
Method
handle
recipes/Python/576624_State_Machine_Text/recipe-576624.py:54–55 ·
view source on GitHub ↗
(self, cargo)
Source
from the content-addressed store, hash-verified
52
ID = NONE_STATE_ID
53
TRANSITIONS = []
54
def
handle(self, cargo):
55
return
NONE_STATE_ID, cargo
56
57
class
StateMachine(object):
58
""
" Minimal state machine that runs based on state ids and state dictionary. "
""
Callers
8
repl
Method · 0.45
textwindow
Function · 0.45
run
Method · 0.45
handle
Method · 0.45
handle
Method · 0.45
handle
Method · 0.45
handle
Method · 0.45
handle
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected