Created
October 14, 2011 22:32
-
-
Save sirpengi/1288551 to your computer and use it in GitHub Desktop.
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
print "module A being imported!" | |
def holler(): | |
print "hollering from A" | |
import b | |
b.pull_from_a() |
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
print "module B being imported!" | |
def pull_from_a(): | |
import a | |
a.holler() |
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
[shuchen@archy stuff]$ python2.7 a.py | |
module A being imported! | |
module B being imported! | |
module A being imported! | |
hollering from A | |
hollering from A |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment