Explanation of list reference
roy at panix.com
Mon Feb 17 00:46:10 CET 2014
In article <mailman.7073.1392591754.18130.python-list at python.org>,
Chris Angelico <rosuav at gmail.com> wrote:
> On Mon, Feb 17, 2014 at 9:54 AM, Gregory Ewing
> <greg.ewing at canterbury.ac.nz> wrote:
> > Chris Angelico wrote:
> >> Because everything in Python is an object, and objects always are
> >> handled by their references.
> > <beginner_thought> So, we have objects... and we have
> > references to objects... but everything is an object...
> > so does that mean references are objects too?
> > </beginner_thought>
> References aren't themselves objects. Names, attributes, etc, etc,
> etc, all refer to objects. Is it clearer to use the verb "refer"
> rather than the noun "reference"?
I know functions are objects, but what about statements? Is the body of
a for loop an object? It is in some languages.
More information about the Python-list