This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Segev Finer
Recipients Segev Finer
Date 2017-07-29.21:02:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1501362127.96.0.48372316228.issue31078@psf.upfronthosting.co.za>
In-reply-to
Content
This is caused by https://github.com/python/cpython/blob/caa1280d1ee5f828f346b585169a7592371d3faa/Lib/pdb.py#L1096 which always passes our own current stdin and stdout, and this triggers the conditional in https://github.com/python/cpython/blob/caa1280d1ee5f828f346b585169a7592371d3faa/Lib/pdb.py#L144-L145.

self.stdin and self.stdout are initialized to sys.stdin and sys.stdout respectively when not passed explicitly: https://github.com/python/cpython/blob/caa1280d1ee5f828f346b585169a7592371d3faa/Lib/cmd.py#L87-L94.

See Also: https://github.com/ipython/ipython/pull/10721
History
Date User Action Args
2017-07-29 21:02:08Segev Finersetrecipients: + Segev Finer
2017-07-29 21:02:07Segev Finersetmessageid: <1501362127.96.0.48372316228.issue31078@psf.upfronthosting.co.za>
2017-07-29 21:02:07Segev Finerlinkissue31078 messages
2017-07-29 21:02:07Segev Finercreate