Message11148

Author refi64
Recipients refi64
Date 2017-02-28.23:57:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488326255.86.0.533754845485.issue2560@psf.upfronthosting.co.za>
In-reply-to
Content
class A(type): pass

class B(type):
    def __instancecheck__(): pass

class C(A, B): pass

print(isinstance(object(), C))


gives:


Traceback (most recent call last):
  File "tst.py", line 8, in <module>
    print(isinstance(object(), C))
RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)


Originally reported as https://github.com/python/typing/issues/395.
History
Date User Action Args
2017-02-28 23:57:35refi64setrecipients: + refi64
2017-02-28 23:57:35refi64setmessageid: <1488326255.86.0.533754845485.issue2560@psf.upfronthosting.co.za>
2017-02-28 23:57:35refi64linkissue2560 messages
2017-02-28 23:57:35refi64create