Passing arguments to function - (The fundamentals are confusing me)

Rocco Moretti roccomoretti at hotpop.com
Tue Aug 9 20:30:59 CEST 2005


Dennis Lee Bieber wrote:
> On Tue, 09 Aug 2005 10:39:29 -0500, Rocco Moretti
> <roccomoretti at hotpop.com> declaimed the following in comp.lang.python:
> 
> 
>>Change it to "the object referenced by y is assigned to the name of x", 
>>and you're closer to the truth.
> 
> 	In a more simplistic view, I'd reverse the phrasing... The name
> "x" is assigned to the object "y" (implying it is no longer attached to
> whatever used to have the name)

I guess I was too subtle - my point was lost. The key thing is not to 
think of "the object 'y'" but to think of "the object referenced by 
(named) 'y'"  There is a distinction between the object (object) and the 
name (variable), which is essential to eliminating the OP's conundrum.



More information about the Python-list mailing list