Explanation of list reference
Roy Smith
roy at panix.com
Sun Feb 16 18:46:10 EST 2014
More information about the Python-list mailing list
Sun Feb 16 18:46:10 EST 2014
- Previous message (by thread): Explanation of list reference
- Next message (by thread): Explanation of list reference
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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"? > > ChrisA I know functions are objects, but what about statements? Is the body of a for loop an object? It is in some languages.
- Previous message (by thread): Explanation of list reference
- Next message (by thread): Explanation of list reference
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list