Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ABC - cannot instantiate the base-class

from with_abc3 import Base

b = Base('Boss')
Traceback (most recent call last):
  File "with_abc3_base.py", line 3, in <module>
    b = Base('Boss')
TypeError: Can't instantiate abstract class Base with abstract methods bar, foo