This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Carl.Friedrich.Bolz
Recipients Carl.Friedrich.Bolz, hongweipeng, lukasz.langa, rhettinger, xitop
Date 2021-12-23.20:42:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640292164.14.0.0273300017342.issue38085@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-12-23 20:42:44Carl.Friedrich.Bolzsetrecipients: + Carl.Friedrich.Bolz, rhettinger, lukasz.langa, hongweipeng, xitop
2021-12-23 20:42:44Carl.Friedrich.Bolzsetmessageid: <1640292164.14.0.0273300017342.issue38085@roundup.psfhosted.org>
2021-12-23 20:42:44Carl.Friedrich.Bolzlinkissue38085 messages
2021-12-23 20:42:44Carl.Friedrich.Bolzcreate