|
From: Ryan <re...@bu...> - 2017-02-28 23:57:44
|
New submission from Ryan:
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.
----------
messages: 11148
nosy: refi64
severity: normal
status: open
title: StackOverflowError with multiple inheritance, metaclasses, and __isinstancecheck__
type: behaviour
versions: Jython 2.7
_______________________________________
Jython tracker <re...@bu...>
<http://bugs.jython.org/issue2560>
_______________________________________
|