[Zope-dev] ExtensionClass is not of type Class?!
Chris Withers
chrisw@nipltd.com
Mon, 20 Aug 2001 14:46:49 +0100
Brian Lloyd wrote:
>
> > So are extension classes not usuable with isinstance?
>
> The Python 1.5.2 isinstance does not recognize Extension Classes (it
> works as expected as of Python 2.x).
I'm sure this was with Zope 2.4.0 on WinNT, so Python 2.1 :-S
> A workable hack would be:
>
> assert ob.__class__ is theClass
I actually ended up replacing it with:
assert ob.meta_type == 'Squishdot File'
cheers,
Chris