View Single Post
Old Jul 14th, 2006, 9:57 AM   #13
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,869
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
So, would that mean that returning vars() (without copying it first), would be handing off variables that refer to memory locations inside that scope? The scope that no longer exists because the function has ended? Or do the variables still exist in memory after the function has ended? I'll play with this a bit. You also didn't really answer my question. I know what's happening, what I don't know is if it has any impact on Python. If vars is actually an essential part of Python, or some sort of representation therein.

Dawei, I've sent you a PM.
Sane is offline   Reply With Quote