Wenzel Jakob | 38bd711 | 2015-07-05 20:05:44 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
2 | import sys | ||||
3 | sys.path.append('.') | ||||
4 | |||||
5 | import example | ||||
6 | |||||
7 | print(example.__name__) | ||||
8 | print(example.submodule.__name__) | ||||
9 | |||||
10 | from example.submodule import * | ||||
11 | |||||
12 | submodule_func() | ||||
13 | |||||
14 | b = B() | ||||
15 | print(b.get_a1()) | ||||
16 | print(b.a1) | ||||
17 | print(b.get_a2()) | ||||
18 | print(b.a2) | ||||
19 | |||||
20 | b.a1 = A(42) | ||||
21 | b.a2 = A(43) | ||||
22 | |||||
23 | print(b.get_a1()) | ||||
24 | print(b.a1) | ||||
25 | print(b.get_a2()) | ||||
26 | print(b.a2) | ||||
27 |