instruction.process ()that generates this error message:
Quote
TypeError: process() takes exactly 1 argument (0 given)
This line of code is nothing more than an abstract method of the class Instruction
class Instruction (object): __metaclass_ = ABCMeta def __init__ (self,identification_byte): self.identity_byte = identification_byte @abstractmethod def process (self): print ("Identifier Byte: {}".format(self.identity_byte))
that it is implemented in the derived classes that generates the error message as:
class LDAInstruction (Instruction): def process (self): super.process ()
So I am not sure of what argument he is complaining, as the only argument is the own instance that invokes the method. What am I misunderstanding here ?