References, and avoiding use of ???variable???

Ben Finney ben+python at benfinney.id.au
Fri Feb 28 23:22:45 EST 2014


Gregory Ewing <greg.ewing at canterbury.ac.nz> writes:

> Ben Finney wrote:
> > That whole chapter of the tutorial talks about “variable” and “variable
> > assignment”, when IMO it should avoid those terms and use the clearer
> > terminology of “reference”, “name”, and “binding a name to a value”.
>
> What about all the other things that can be assigned
> to but aren't names? (List and dict elements, attributes,
> etc.) What do you suggest calling them?

Assignment binds a reference to a value.

A name is a special kind of reference.

-- 
 \     “We are all agreed that your theory is crazy. The question that |
  `\      divides us is whether it is crazy enough to have a chance of |
_o__)            being correct.” —Niels Bohr (to Wolfgang Pauli), 1958 |
Ben Finney




More information about the Python-list mailing list