Question on Standard Types
Martin v. Löwis
martin at v.loewis.de
Sun Sep 7 15:02:49 EDT 2003
aahz at pythoncraft.com (Aahz) writes:
> >"In Python, standard types are not classes, so creating integers and
> >strings does not involve instantiation".
>
> Actually, this bit *is* definitely out of date; Python 2.2 introduced
> new-style classes, and all the standard types are now new-style classes.
The statement was always incorrect. The standard types always involved
instantiation, and integers and strings have always been objects, with
a separate identity. Whether or not they had a relation ship <type
'classobj'> is irrelevant for that.
Regards,
Martin
More information about the Python-list
mailing list