(self, args)
EDIT: output a program line and position cursor for editing.
EDIT: output a program line and position cursor for editing.
EDIT : output a program line and position cursor for editing .
def edit_(self, args):
        """EDIT: output a program line and position cursor for editing."""
        from_line, = args
        from_line, = self.program.explicit_lines(from_line)
        self.program.last_stored = from_line
        if from_line is None or from_line not in self.program.line_numbers:
            raise error.BASICError(error.UNDEFINED_LINE_NUMBER)
        # throws back to direct mode
        # jump to end of direct line so execution stops
        self.interpreter.set_pointer(False)
        # request edit prompt
        self._edit_prompt = (from_line, None)
def edit_ ( self , args ) : from_line , = args from_line , = self . program . explicit_lines ( from_line ) self . program . last_stored = from_line if from_line is None or from_line not in self . program . line_numbers : raise error . BASICError ( error . UNDEFINED_LINE_NUMBER ) # throws back to direct mode # jump to end of direct line so execution stops self . interpreter . set_pointer ( False ) # request edit prompt self . _edit_prompt = ( from_line , None )