(self, args)
LIST: output program lines.
LIST: output program lines.
LIST : output program lines .
def list_(self, args):
        """LIST: output program lines."""
        line_range = next(args)
        out = values.next_string(args)
        if out is not None:
            out = self.files.open(0, out, filetype=b'A', mode=b'O')
        list(args)
        lines = self.program.list_lines(*line_range)
        if out:
            with out:
                for l in lines:
                    out.write_line(l)
        else:
            for l in lines:
                # flow of listing is visible on screen
                # and interruptible
                self.queues.wait()
                # LIST on screen is slightly different from just writing
                self.console.list_line(l)
        # return to direct mode
        self.interpreter.set_pointer(False)
def list_ ( self , args ) : line_range = next ( args ) out = values . next_string ( args ) if out is not None : out = self . files . open ( 0 , out , filetype = b'A' , mode = b'O' ) list ( args ) lines = self . program . list_lines ( * line_range ) if out : with out : for l in lines : out . write_line ( l ) else : for l in lines : # flow of listing is visible on screen # and interruptible self . queues . wait ( ) # LIST on screen is slightly different from just writing self . console . list_line ( l ) # return to direct mode self . interpreter . set_pointer ( False )