Explanation of list reference
Marko Rauhamaa
marko at pacujo.net
Fri Feb 14 16:20:01 EST 2014
Marko Rauhamaa <marko at pacujo.net>:
> You're right, of course. Conceptually, the "everything is a reference"
> and the "small"/"big" distinction are equivalent (produce the same
> outcomes). The question is, which model is easier for a beginner to
> grasp.
In fact, if you adjust my annotations to the given example from the
"everything is a reference" point of view, you'll see that the
explanations become a whole deal longer and probably more confusing.
Also, the picture becomes much messier with more strings attached.
Marko
More information about the Python-list
mailing list