Author zyasoft
Recipients Arfrever, gthank, pjenvey, zyasoft
Date 2014-05-13.20:08:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Interesting, I was reviewing and I see that there was a related problem in CPython earlier, as seen in the commented-out code. Of course this commented-out code actually works on both CPython and Jython now, so we have to fix Arfrever's case:

    def test_isinstance_class(self):
        class A:
            __metaclass__ = abc.ABCMeta
        class OldstyleClass:
        self.assertFalse(isinstance(OldstyleClass, A))
        self.assertTrue(isinstance(OldstyleClass, type(OldstyleClass)))
        self.assertFalse(isinstance(A, OldstyleClass))
        # This raises a recursion depth error, but is low-priority:
        # self.assertTrue(isinstance(A, abc.ABCMeta))
Date User Action Args
2014-05-13 20:08:48zyasoftsetmessageid: <>
2014-05-13 20:08:48zyasoftsetrecipients: + zyasoft, pjenvey, Arfrever, gthank
2014-05-13 20:08:48zyasoftlinkissue2055 messages
2014-05-13 20:08:48zyasoftcreate