(self)
Interactive interpreter session.
Interactive interpreter session.
Interactive interpreter session .
def interact(self):
        """Interactive interpreter session."""
        while True:
            with self._handle_exceptions():
                self.interpreter.loop()
                if self._auto_mode:
                    self._auto_step()
                else:
                    self._show_prompt()
                    # input loop, checks events
                    line = self.console.read_line(from_start=True)
                    self._prompt = not self._store_line(line)
def interact ( self ) : while True : with self . _handle_exceptions ( ) : self . interpreter . loop ( ) if self . _auto_mode : self . _auto_step ( ) else : self . _show_prompt ( ) # input loop, checks events line = self . console . read_line ( from_start = True ) self . _prompt = not self . _store_line ( line )