statemachine.py =============== .. automodule:: statemachine Output from sample_run() ------------------------ Using the @statename.event decorator automatically grabs function names and docstring text, then pairs them with the associated statename, as shown in the first part of the output below. We'll eventually use this to generate automatic state documentation in a nice format. .. literalinclude:: statemachine_run.txt