On 04/05/13 23:04, kartik sundarajan wrote:
Hi,
I am trying to learn how Python stores variables in memory. For ex:
my_var = 'test'
def func():
pass
when I type dir() I get
['__builtins__', '__doc__', '__name__', '__package__', 'func', 'help',
'my_var']
are these variables stored in a
Hi,
I am trying to learn how Python stores variables in memory. For ex:
my_var = 'test'
def func():
pass
when I type dir() I get
['__builtins__', '__doc__', '__name__', '__package__', 'func', 'help',
'my_var']
are these variables stored in a dict and on calling dir() all the keys are
retu