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
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor