Is 'everything' a refrence or isn't it?

Antoon Pardon apardon at
Sat Jan 14 09:14:01 EST 2006

On 2006-01-14, Steven D'Aprano <steve at> wrote:
> On Thu, 12 Jan 2006 16:11:53 -0800, rurpy wrote:
>> It would help if you or someone would answer these
>> five questions (with something more than "yes" or "no" :-)
>> 1. Do all objects have values?
> All objects ARE values. Some values themselves are complex objects
> which in turn contain other values, e.g. if I execute:

I don't agree with this wording. If a mutable object mutates it
is still the same object but is's value has changed. So I would
agree with: objects have values.

> L = [None, 1, "hello"]
> I have created a name 'L' which is bound to ("has the value of") a list
> with three items. The first item has the value of ("is the object") None,
> the second has the value of ("is the object") 1, and the third is the
> string "hello".

But if you execute L.append(False) then L is still the same object
but it's value is different.

Antoon Pardon

More information about the Python-list mailing list