Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: I think the best is to ignore __instancecheck__ when "cls.__instancecheck__" is returned as an unbound method. In this case, we try "type(cls).__instancecheck__" instead.
Here is a patch along this idea. I had to disable a test named "Evil", because in this case isinstance() simply falls back to the original algorithm. I don't know if this is applicable to 3.0: unbound methods don't exist any more. ---------- nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file10783/instancecheck.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2325> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com