Skip to content

Instantly share code, notes, and snippets.

@nipunbatra
Created May 20, 2015 10:42
Show Gist options
  • Save nipunbatra/59dbb09018aa24259157 to your computer and use it in GitHub Desktop.
Save nipunbatra/59dbb09018aa24259157 to your computer and use it in GitHub Desktop.
In [1]: import a as a
In [2]: a.hi()
Hi there
In [3]: a.var
a.var_1 a.var_2
In [3]: a.var_1
Out[3]: 0
In [4]: from a import hi
In [5]: var_1
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-5-36465f6f2c12> in <module>()
----> 1 var_1
NameError: name 'var_1' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment