Revisão | 2ea27779cde27879ac2e6bdd07f752ff2834cc55 (tree) |
---|---|
Hora | 2011-01-04 15:14:29 |
Autor | Hidehisa SHIOMI <shiomi@ee.e...> |
Commiter | Hidehisa SHIOMI |
Singleton生成の実験
@@ -13,3 +13,9 @@ | ||
13 | 13 | from easy import * |
14 | 14 | from instant import * |
15 | 15 | from lib import * |
16 | + | |
17 | +class Root: | |
18 | + def __call__(self): | |
19 | + return self | |
20 | + | |
21 | +# Root = Root() |
@@ -0,0 +1,12 @@ | ||
1 | +''' | |
2 | +Created on 2011/01/04 | |
3 | + | |
4 | +@author: bijoux | |
5 | +''' | |
6 | + | |
7 | +import PyLAF | |
8 | + | |
9 | +print PyLAF.Root | |
10 | +print PyLAF.Root() | |
11 | +root = PyLAF.Root() | |
12 | +print root | |
\ No newline at end of file |