New-style objects are not instances, apparently
"Martin v. Löwis"
martin at v.loewis.de
Thu Jan 3 16:47:22 EST 2008
> Further experimentation showed that derivation from object was the
> culprit; new-style objects are not considered "instances" in the above
> sense. I wasn't able to figure out a workaround. Is there one, or is
> the distinction between traditional classes and built-in types only
> going to get more and more hazy?
In the long run (ie. Python 3), the distinction is going to be very
hazy, very dark: it will entirely disappear. There will be only one
concept of type/class, not two, so there will be no point
distinguishing between types and classes.
Regards,
Martin
More information about the Python-list
mailing list