(self, jumpnum, err=error.UNDEFINED_LINE_NUMBER)
Execute jump for a GOTO or RUN instruction.
Execute jump for a GOTO or RUN instruction.
Execute jump for a GOTO or RUN instruction .
def jump(self, jumpnum, err=error.UNDEFINED_LINE_NUMBER):
        """Execute jump for a GOTO or RUN instruction."""
        if jumpnum is None:
            self.set_pointer(True, 0)
        else:
            try:
                # jump to target
                self.set_pointer(True, self._program.line_numbers[jumpnum])
            except KeyError:
                raise error.BASICError(err)
def jump ( self , jumpnum , err = error . UNDEFINED_LINE_NUMBER ) : if jumpnum is None : self . set_pointer ( True , 0 ) else : try : # jump to target self . set_pointer ( True , self . _program . line_numbers [ jumpnum ] ) except KeyError : raise error . BASICError ( err )