import from question

Tobiah toby at tobiah.org
Wed Jan 16 18:31:54 EST 2008


> Again, those aren't copies. There is only one instance of each value,
> referenced by multiple names. 


Ok, I get it.  I was locally importing a pointer to an integer which is really
the same object as the module name points to, but the assignment changes that.
The confusion for me centered around the fact that a local name can be used
to change values in mutables that are visible from within the module.  This
however, does not include assignment to the local name.

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list