Finding the instance reference of an object

greg greg at cosc.canterbury.ac.nz
Sat Nov 8 01:30:17 EST 2008


Joe Strout wrote:
> On Nov 5, 2008, at 2:06 PM, Lie wrote:
> 
>> Another example: pass-by-object.
> 
> Here's where we depart, I guess.  I think there's no such thing (see 
> <http://en.wikipedia.org/wiki/Evaluation_strategy > for example, and the 
> dead-tree references I have on hand agree).

Something has just occurred to me. If you take the
view that the value of an expression is an object,
then the terms "value" and "object" are synonymous.

So if you then insist that Python uses "call by object",
you're actually saying it uses call by value!

-- 
Greg



More information about the Python-list mailing list