Explanation of list reference
marko at pacujo.net
Fri Feb 14 22:20:01 CET 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
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.
More information about the Python-list