[issue17838] Can't assign a different value for sys.stdin in IDLE

Serhiy Storchaka report at bugs.python.org
Thu Apr 25 22:24:30 CEST 2013


Serhiy Storchaka added the comment:

I confirm this bug.

Terry, 3.3.1 doesn't contains this bug. This is a regression introduced by issue17585.

A right solution is not easy. We should

1) Remove PseudoInputFile.close.
2) Do not print an exception in Executive.runcode, but transfer it via rpc back to PyShell.
3) In PyShell.runcode receive an exception and process it same way as in non-subprocess mode (note that in non-subrocess mode a messagebox asks "Exit? Do you want to exit altogether?", but in subprocess mode it now asks "Kill? The program is still running! Do you want to kill it?").

The hard part is transferring an exception.

----------
nosy: +serhiy.storchaka
stage:  -> needs patch
versions: +Python 2.7, Python 3.3

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


More information about the Python-bugs-list mailing list