Pass by reference ?

Jacek Generowicz jmg at ecs.soton.ac.uk
Wed Apr 5 12:49:53 EDT 2000


Michael Hudson wrote:

> The code you posted only confuses if you have a flawed understanding of
> assignment in Python

That is exactly the point. My original confusion arose precisely because I had
made an incorrect assumption about assignment in Python (an assumption which, I
suspect, many newcomers to the language will make until they learn the truth).
Correcting this error is far more constructive than discussing what name should be
given to the semantics of argument passing.

Jacek







More information about the Python-list mailing list