gaogaotiantian · GitHub

@gaogaotiantian

Closed

@gaogaotiantian

@johnslavik

tanloong

Closed

corona10

stripped = len(origline) - len(line)
begidx = self.readline_wrapper.get_begidx() - stripped
endidx = self.readline_wrapper.get_endidx() - stripped
if begidx>0:

corona10

self.message("*exit from pdb interact command*")
else:
with self._enable_rlcompleter(ns):
console = _PdbInteractiveConsole(ns, message=self.message)

corona10

console = _PdbInteractiveConsole(ns, message=self.message)
if self.pyrepl_input is not None:
from _pyrepl.simple_interact import run_multiline_interactive_console
self.message("*pdb interact start*")

corona10

corona10

return [e for e in self.displaying.get(self.curframe, {})
if e.startswith(text)]

def do_interact(self, arg):

corona10

Comment on lines +357 to +361

if not os.getenv("PYTHON_BASIC_REPL"):
from _pyrepl.main import CAN_USE_PYREPL

return CAN_USE_PYREPL
return False

Member

Suggested change

if not os.getenv("PYTHON_BASIC_REPL"):
from _pyrepl.main import CAN_USE_PYREPL
return CAN_USE_PYREPL
return False
if os.getenv('PYTHON_BASIC_REPL'):
CAN_USE_PYREPL = False
else:
try:
from _pyrepl.main import CAN_USE_PYREPL
except ModuleNotFoundError:
CAN_USE_PYREPL = False
return CAN_USE_PYREPL

corona10


self.pdb_instance = pdb_instance
self.prompt = prompt
self.console = code.InteractiveConsole()

corona10


self.pdb_instance = pdb_instance
self.prompt = prompt
self.console = code.InteractiveConsole()

corona10

corona10

@gaogaotiantian

@gaogaotiantian

corona10

@gaogaotiantian

corona10

@gaogaotiantian

@ambv ambv mentioned this pull request

Jul 22, 2026

Merged

Read the original on github.com ↗