Skip to content

Instantly share code, notes, and snippets.

@sirpengi
Created October 14, 2011 22:32
Show Gist options
  • Save sirpengi/1288551 to your computer and use it in GitHub Desktop.
Save sirpengi/1288551 to your computer and use it in GitHub Desktop.
print "module A being imported!"
def holler():
print "hollering from A"
import b
b.pull_from_a()
print "module B being imported!"
def pull_from_a():
import a
a.holler()
[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