[Python-Dev] Should we do away with unbound methods in Py3k?

Phillip J. Eby pje at telecommunity.com
Thu Nov 22 04:15:03 CET 2007


At 03:48 PM 11/22/2007 +1300, Greg Ewing wrote:
>Phillip J. Eby wrote:
> > The lookup sequence should probably be something like:
> >
> >    1. type(ob) is cls
> >    2. issubclass(type(ob), cls)
>
>But can't issubclass be overridden as well?

Yes, which is why I spelled it that way, and mentioned that 
'issubclass()' should check class identity and __mro__ before falling 
through to the special method check.



More information about the Python-Dev mailing list