[ create a new paste ] login | about

Link: http://codepad.org/t19g9O5b    [ raw code | fork ]

Python, pasted on Mar 31:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Mon Mar 31 13:52:02
~/circuits
$ python
Python 2.7.6 (default, Nov 19 2013, 14:59:07)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from circuits import Component
>>> class Foo(Component):
...     pass
...
>>> class App(Component):
...     foo = Foo()
...
>>> app = App()
>>> app.components
set([<Foo/* 68870:MainThread (queued=0) [S]>])
>>>


Create a new paste based on this one


Comments: