Peter Hansen <[EMAIL PROTECTED]> writes: > Steven D'Aprano wrote: >> Python does not have references or pointers, except internally where >> Python coders can not get to them. It has names and objects. Keep thinking >> about "call by reference" and you just confuse yourself and others. Think >> about names and objects and it is simple and straight-forward. > I won't argue the point, but I would point out that the term "name" is > insufficient for whatever it is that is stored inside a list.
Correct. What's stored in a list is a reference. > What do you call it, if not a reference? The word "binding" isn't > really appropriate here, as it is easily confused with the operation > of binding (i.e. usually what assignment does). To clarify, assignement statements in python are bindings, and don't do assign values to a variables. Assignment in other languages do that - which is why people get confused when exposed to what Python does. <mike -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list