Created
September 16, 2015 21:56
-
-
Save glyph/40d9e20796b15b07d0d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mechanism(object): | |
m = MethodicalMachine() | |
def __init__(self): | |
self.value = 1 | |
@m.state(serialized="first-state") | |
def first(self): | |
"First state." | |
@m.state(serialized="second-state") | |
def second(self): | |
"Second state." | |
_state = m.state.descriptor() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment