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 andrei.avk
Recipients BTaskaya, andrei.avk, ethan.furman, jbasko, rhettinger, stutzbach, tda
Date 2021-07-08.13:51:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625752293.12.0.481442406985.issue35815@roundup.psfhosted.org>
In-reply-to
Content
Ethan: as far as I understand, there's no actual problem here. The report adds a print statement in __init_subclass__ that says that instance was created, while in fact instance is not created. I can confirm what Batuhan said, in my testing, that it fails with TypeError as expected:

python3 ~/temp/a.py                                                                                                                                                                                                         ----VICMD----
Created instance of <class '__main__.Derived'> easily: <__main__.Derived object at 0x106fbb9d0>
Traceback (most recent call last):
  File "/Users/ak/temp/a.py", line 54, in <module>
    Derived()
TypeError: Can't instantiate abstract class Derived with abstract method do_something


I think this can be closed as not a bug.
History
Date User Action Args
2021-07-08 13:51:33andrei.avksetrecipients: + andrei.avk, rhettinger, stutzbach, ethan.furman, BTaskaya, jbasko, tda
2021-07-08 13:51:33andrei.avksetmessageid: <1625752293.12.0.481442406985.issue35815@roundup.psfhosted.org>
2021-07-08 13:51:33andrei.avklinkissue35815 messages
2021-07-08 13:51:32andrei.avkcreate