Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$ python
Python 2.7.11 (default, Dec 26 2015, 17:47:53)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from circuits import Component, Event
>>> class App(Component):
... def foo(self):
... return"bar"))
... def bar(self):
... return "Hello World!"
>>> app = App()
>>> app.start()
(<Thread(App, started daemon 123145306509312)>, None)
>>> x ="foo"))
>>> x
<Value ('Hello World!') result=True; errors=False; for <foo[*] ( )>>
>>> y ="foo")); y.value
>>> y
<Value ('Hello World!') result=True; errors=False; for <foo[*] ( )>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.