On Tuesday 18 October 2005 11:12 pm, Giovanni Bajo wrote:
> Phil Thompson <[EMAIL PROTECTED]> wrote:
> >> behaviour:
> >>>>> import sip
> >>>>> isinstance(sip.wrapper, object)
> >>
> >> True
> >>
> >>>>> issubclass(sip.wrapper, object)
> >>
> >> True
> >>
> >> Dunno if it's related to the fix.
> >
> > Why is it strange?
>
> It's uncommon for an object to both be an instance *and* a subclass of a
> given class. What other object in Python has the same property?

isinstance(type([]), object)
True
issubclass(type([]), object)
True

isinstance(type(1), object)
True
issubclass(type(1), object)
True

...etc, etc.

Phil

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to