Default parameter positioning and TypeError
Default parameter positioning and TypeError Question: So here’s my code: FLASHCMD_TIMEOUT = 20 DEFAULT_TIMEOUT = 50 def createcommand(self): my_cmd = def.FLASHCMD timeout = def.FLASHCMD_TIMEOUT print(f"sending timeout val = {timeout}") response = self.op_sndrcv(my_cmd, timeout) return response def op_sndrcv(self, command, timeout = def.DEFAULT_TIMEOUT, log=True, resp_needed=False): # Do process the command and return response When I execute, I …