An argument was not recognised when instantiating an object
I am trying to learn about OOP and inheritance concepts as well as defining a function with an asterisk *
before a variable (to unpack its values). When executing the toy code below, I got either an unexpected keyword argument or invalid syntax error.
Bug with diamon-shaped inheritance in Python
I am trying to use inheritance in which I have a base class, say X
, and 2 classes which both independently inherit from X
, say A(X)
and B(x)
(these represent the common attributes of a whole bunch of tertiary classes, A1(A)
, A2(A)
, B1(B)
, etc.)