[Zope3-dev] Overloading 'is' (was: Nasty bugs)

Steve Alexander steve@cat-box.net
Wed, 20 Mar 2002 18:55:27 +0000


Guido van Rossum wrote:
>
> __class__ is different -- you're allowed to overload that, and in fact
> I believe it's a bug that isinstance(x, C) doesn't believe x.__class__
> (at least it doesn't when C is a new-style class or a built-in type).

I believe that fixing this bug, in conjunction with not wrapping None, 
would fix most of the problems with wrappers.

--
Steve Alexander