You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
431 B

  1. #!/usr/bin/env python
  2. from __future__ import print_function
  3. import sys
  4. sys.path.append('.')
  5. import example
  6. print(example.__name__)
  7. print(example.submodule.__name__)
  8. from example.submodule import *
  9. from example import OD
  10. submodule_func()
  11. b = B()
  12. print(b.get_a1())
  13. print(b.a1)
  14. print(b.get_a2())
  15. print(b.a2)
  16. b.a1 = A(42)
  17. b.a2 = A(43)
  18. print(b.get_a1())
  19. print(b.a1)
  20. print(b.get_a2())
  21. print(b.a2)
  22. print(OD([(1, 'a'), (2, 'b')]))