Carl Friedrich Bolz-Tereick <[email protected]> added the comment:
Or, in other words, in my opinion this is the root cause of the bug:
class Base:
def __init_subclass__(cls):
global broken_class
broken_class = cls
assert 0
try:
class Broken(Base): pass
except: pass
assert broken_class not in Base.__subclasses__()
The assert fails, which imo it shouldn't.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue38085>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com