Inheriting the @ sign from Ruby

Fredrik Lundh fredrik at effbot.org
Tue Dec 12 13:10:05 EST 2000


Simon wrote:
> Isn't that Java? It *certainly* isn't Python - *everything* is by
> reference in python. Unless I'm *really* confused...

using Roy's definitions, "call by reference" means that you
can change whatever the reference points to.

that's not true in Python.

better avoid the terms completely, since Python's model isn't
neither strict call-by-value (arguments aren't copied), nor strict
call-by-reference (not all arguments can be modified in place).

</F>





More information about the Python-list mailing list