[Tutor] integers are also objects?
Danny Yoo
dyoo@hkn.eecs.berkeley.edu
Mon, 3 Dec 2001 01:40:23 -0800 (PST)
On Mon, 3 Dec 2001, Remco Gerlich wrote:
> On 0, karthik Guru <karthikg@aztec.soft.net> wrote:
> > thanks a lot for the information.
> > since integer are objects, do integers also inherit from some
> > class?? rather are integers instance of some class?
>
> No. They're objects, but not class instances. They're types.
>
> This sort of thing is being changed in the very latest Pythons, and I
> haven't followed the recent development, but as far as I know it's
> still true. Soon there may be an Integer class that does this, but I
> don't know the details.
There are details online about the type/class unification that's part of
the upcoming 2.2 release:
http://www.python.org/2.2/descrintro.html
The __future__ looks quite exciting (and frightening) indeed. *grin*