Created
May 22, 2013 18:01
-
-
Save veloutin/5629549 to your computer and use it in GitHub Desktop.
There there
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import p.a | |
B notfound | |
A <module 'p.b' from 'p/b.py'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import p.b | |
print("A", getattr(p, "b", "notfound")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import p.a | |
print("B", getattr(p, "a", "notfound")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment