[issue33749] pdb.Pdb constructor stdout override required to disable use_rawinput

2018-06-03 Thread R. David Murray
Change by R. David Murray : -- superseder: -> can cmd.py's API/docs for the use of an alternate stdin be improved? ___ Python tracker ___

[issue33749] pdb.Pdb constructor stdout override required to disable use_rawinput

2018-06-03 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of 2571 and 10396. As I commented in 10396, if you want to work on an enhancement request (for cmd) that improves the situation, it will be welcome; but as you observed what to do isn't immediately obvious, so discussion before

[issue33749] pdb.Pdb constructor stdout override required to disable use_rawinput

2018-06-03 Thread Michiel
Michiel added the comment: Based on code inspection, this affects 2.7 - current master -- versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.7, Python 3.8 ___ Python tracker

[issue33749] pdb.Pdb constructor stdout override required to disable use_rawinput

2018-06-03 Thread Michiel
New submission from Michiel : It looks like there's possibly a typo/small bug in the pdb.Pdb code. If I supply the stdin argument to the constructor, and provide e.g. a io.StringIO object, then I expect commands to be read from there. This however doesn't happen. If I additionally supply a