Skip to content

Instantly share code, notes, and snippets.

@andrewcstewart
Created May 11, 2013 02:16
Show Gist options
  • Save andrewcstewart/5558654 to your computer and use it in GitHub Desktop.
Save andrewcstewart/5558654 to your computer and use it in GitHub Desktop.
How is b.D() smart enough to know that C is b.C(), or rather how is it aware of C when C hasn't been imported into the environment?
import B as b
b.D()
C = "foo"
def D():
print C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment