20 Aug
2001
20 Aug
'01
1:46 p.m.
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