Advertisement
Guest User

Untitled

a guest
May 6th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. a
  2. |-__init__.py
  3. |-b
  4. |---__init__.py
  5. |---c.py
  6.  
  7. >>> import a.b.c as c
  8.  
  9. >>> from a import b
  10.  
  11. >>> from a.b import c
  12. Traceback (most recent call last):
  13. File "<stdin>", line 1, in <module>
  14. ImportError: cannot import name 'c'
  15. cannot import name 'c'
  16.  
  17. >>> from a.b.c import d
  18. Traceback (most recent call last):
  19. File "<stdin>", line 1, in <module>
  20. ImportError: No module named 'a.b.c'
  21. No module named 'a.b.c'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement