Official definition of call-by-value (Re: Finding the instance reference...)
greg
greg at cosc.canterbury.ac.nz
Wed Nov 12 06:36:37 EST 2008
Steven D'Aprano wrote:
> If you insist that Python is call by value, the only way that can work is
> by defining values to be references, which is nothing like Algol.
No, that's not the only way. You can also make it work
by accepting the original definition of call-by-value
at face value -- i.e. as equivalent to assignment,
without any implication of copying beyond what
assignment itself implies.
--
Greg
More information about the Python-list
mailing list