[New-bugs-announce] [issue10396] stdin argument to pdb.Pdb doesn't work unless you also set Pdb.use_rawinput = False

Michael Hoffman report at bugs.python.org
Fri Nov 12 18:50:21 CET 2010


New submission from Michael Hoffman <qq9jsuvyyw at snkmail.com>:

If you create a Pdb instance with an stdin argument, the default behavior is for commands to be retrieved using raw_input(), which uses sys.stdin instead, thereby causing the stdin argument to be without effect.

You can work around this by setting the use_rawinput attribute of the instance to False, but this should be done whenever an stdin argument is given to the constructor.

----------
components: Library (Lib)
files: testcase.py
messages: 121050
nosy: hoffman
priority: normal
severity: normal
status: open
title: stdin argument to pdb.Pdb doesn't work unless you also set Pdb.use_rawinput = False
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file19580/testcase.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10396>
_______________________________________


More information about the New-bugs-announce mailing list