[Tutor] Python internals
kartik sundarajan
kartiksundarajan at gmail.com
Sat May 4 15:04:23 CEST 2013
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
returned?
Or is it stored in a list or a heap?
Can anyone suggest if there some document I can read to help me understand
the Python internals work ?
Cheers
Kartik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130504/9839edb6/attachment.html>
More information about the Tutor
mailing list