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

Michael Hoffman report at bugs.python.org
Sat Nov 13 19:13:17 CET 2010


Michael Hoffman <qq9jsuvyyw at snkmail.com> added the comment:

As always, it seems a bit more complicated than I originally expected. Since it's too late for a Python 2.x feature addition, I'll wait until I upgrade to 3.x to work on that.

You are correct, technically this is not a docs bug but I think the clarity of the docs would be greatly improved if you would add the text from the cmd module docs to the pdb docs:

"If you want a given stdin to be used, make sure to set the instance’s use_rawinput attribute to False, otherwise stdin will be ignored."

I hope you will agree that this is unexpected behavior that doesn't really fit into the zen of Python.

----------

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


More information about the Python-bugs-list mailing list