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

Bryan Olson fakeaddress at
Fri Jan 13 02:06:54 EST 2006

rurpy at wrote:
> The reason is that I am still trying to figure out
> what a value is myself.  Do all objects have values?


> If
> not which do and which don't?  What's the value of int(1)?
> An object?  Some otherwise unreachable thing that
> represents the abstract concept of the number 1?

The value is the integer one. Python's 'int' is an abstract
data type. It's values are the integers.

> What the value of object()?  A few weeks ago I turned
> to that page for enlightenment, with the results I reported.

I think type 'object' has only one value, so that's it.


More information about the Python-list mailing list