[issue34266] Bad behavior with "restart \" in pdb

ppperry report at bugs.python.org
Sat Jul 28 19:24:25 EDT 2018


New submission from ppperry <mapreader at olum.org>:

(Pdb) restart \
Traceback (most recent call last):
  File "C:\Program Files\Python36\lib\pdb.py", line 1667, in main
    pdb._runscript(mainpyfile)
  File "C:\Program Files\Python36\lib\pdb.py", line 1548, in _runscript
    self.run(statement)
  File "C:\Program Files\Python36\lib\bdb.py", line 431, in run
    exec(cmd, globals, locals)
  File "<string>", line 1, in <module>
  <code being debugged ommited>
  File "C:\Program Files\Python36\lib\bdb.py", line 48, in trace_dispatch
    return self.dispatch_line(frame)
  File "C:\Program Files\Python36\lib\bdb.py", line 66, in dispatch_line
    self.user_line(frame)
  File "C:\Program Files\Python36\lib\pdb.py", line 261, in user_line
    self.interaction(frame, None)
  File "C:\Program Files\Python36\lib\pdb.py", line 352, in interaction
    self._cmdloop()
  File "C:\Program Files\Python36\lib\pdb.py", line 321, in _cmdloop
    self.cmdloop()
  File "C:\Program Files\Python36\lib\cmd.py", line 138, in cmdloop
    stop = self.onecmd(line)
  File "C:\Program Files\Python36\lib\pdb.py", line 418, in onecmd
    return cmd.Cmd.onecmd(self, line)
  File "C:\Program Files\Python36\lib\cmd.py", line 217, in onecmd
    return func(arg)
  File "C:\Program Files\Python36\lib\pdb.py", line 1025, in do_run
    sys.argv = shlex.split(arg)
  File "C:\Program Files\Python36\lib\shlex.py", line 305, in split
    return list(lex)
  File "C:\Program Files\Python36\lib\shlex.py", line 295, in __next__
    token = self.get_token()
  File "C:\Program Files\Python36\lib\shlex.py", line 105, in get_token
    raw = self.read_token()
  File "C:\Program Files\Python36\lib\shlex.py", line 206, in read_token
    raise ValueError("No escaped character")

----------
components: Library (Lib)
messages: 322595
nosy: ppperry
priority: normal
severity: normal
status: open
title: Bad behavior with "restart \" in pdb
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34266>
_______________________________________


More information about the Python-bugs-list mailing list