2021-01-16
class – Is it possible to make abstract classes in Python?

The Question : 362 people think this question is useful How can I make a class or method abstract in Python? I tried redefining __new__() like so: but now if I create a class G that inherits from F like so: then I can’t instantiate G either, since it calls its super class’s __new__ method.