Explanation of list reference

Chris Angelico rosuav at gmail.com
Sun Feb 16 18:02:26 EST 2014


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



More information about the Python-list mailing list