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.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to