[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False
Matias Gonzalez <[EMAIL PROTECTED]> added the comment: Yes, it should be. I don't have permissions to. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.
[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False
Matias Gonzalez <[EMAIL PROTECTED]> added the comment: This is not a bug. Function __instancecheck__ should be a classmethod. >>> class Meta(type): ... @classmethod ... def __instancecheck__(self, other): ... return False ... >>> isinstance(3, Meta