[docs] [issue34115] code.InteractiveConsole.interact() closes stdin

Yonatan Zunger report at bugs.python.org
Fri Jul 20 21:43:17 EDT 2018


Yonatan Zunger <zunger at humu.com> added the comment:

Or perhaps in an alternate phrasing: The sys.stdin.close behavior makes sense if quit is being used inside IDLE, but is very surprising from the perspective of the `code` module. (Really, even the SystemExit is surprising there, and should be documented!)

What if we added a stdin-preserving workaround to code.InteractiveConsole.interact, and added documentation of the SystemExit behavior to that module as well, but left _Quitter itself as-is?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34115>
_______________________________________


More information about the docs mailing list