IsString

Fredrik Lundh fredrik at pythonware.com
Wed Dec 14 17:23:20 EST 2005


Donn Cave wrote:

> While I agree (with another post) that there seems to be
> a difference in perspective that depends on what language
> you were using when you first heard these terms, in the
> end it really seems sort of almost disingenuous to argue
> that the "value" in question is actually a pointer.

The word "value" has a defined meaning in python:

    http://docs.python.org/ref/objects.html

> (The pointer is in a practical sense a reference, so what
> if we say "pass by reference value?!"

"call by object reference" ?

as the CLU folks noted some thirty years ago (my emphasis):

    "IN PARTICULAR IT IS NOT CALL BY VALUE because mutations
    of arguments performed by the called routine will be visible to
    the caller. And IT IS NOT CALL BY REFERENCE because access
    is not given to the variables of the caller, but merely to certain
    objects."

Arguing that "as long as I can define the word value/reference, it's
call-by-value/reference" is somewhat disingenuous, indeed.

</F>






More information about the Python-list mailing list