What other languages use the same data model as Python?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue May 3 11:20:42 EDT 2011


On Tue, 03 May 2011 13:39:24 +0100, Hans Georg Schaathun wrote:

> On 01 May 2011 08:45:51 GMT, Steven D'Aprano
>   <steve+comp.lang.python at pearwood.info> wrote:
> :  Python uses a data model of "name binding" and "call by object" (also
> :  known as "call by sharing"). I trust I don't need to define my terms,
> but :  just in case:
> 
> Without having the time to get my hand around exactly what this means:
> Simula has three ways of transmitting arguments, namely transmission by
> name, by value, and by reference.  Is transmission by name the same as
> call by object?  Anyway, I have never seen anyone counting more than
> three ways of doing this ...

You get credit for not falling into the trap of thinking there are only 
two, call by reference and call by value, but there are *many* more than 
just three. Wikipedia lists at least 13:

http://en.wikipedia.org/wiki/Evaluation_strategy


See also: http://effbot.org/zone/call-by-object.htm



-- 
Steven




More information about the Python-list mailing list