New submission from Michael Hoffman <qq9jsuv...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10396>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to