Skip to content

Instantly share code, notes, and snippets.

@sloria
Created June 30, 2013 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sloria/5895776 to your computer and use it in GitHub Desktop.
Save sloria/5895776 to your computer and use it in GitHub Desktop.
# Instead of this
self.release_water()
self.shutdown()
self.alarm()
class Reactor:
...
def release_water(self):
self.valve.open()
return self
self.release_water().shutdown().alarm()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment