[Tutor] integers are also objects?

Remco Gerlich scarblac@pino.selwerd.nl
Mon, 3 Dec 2001 09:57:37 +0100

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.

Remco Gerlich