Message409107
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. |
|
Date |
User |
Action |
Args |
2021-12-23 20:42:44 | Carl.Friedrich.Bolz | set | recipients:
+ Carl.Friedrich.Bolz, rhettinger, lukasz.langa, hongweipeng, xitop |
2021-12-23 20:42:44 | Carl.Friedrich.Bolz | set | messageid: <1640292164.14.0.0273300017342.issue38085@roundup.psfhosted.org> |
2021-12-23 20:42:44 | Carl.Friedrich.Bolz | link | issue38085 messages |
2021-12-23 20:42:44 | Carl.Friedrich.Bolz | create | |
|