[Tutor] integers are also objects?
Mon, 3 Dec 2001 09:57:37 +0100
On 0, karthik Guru <email@example.com> 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