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

Guilherme Simões report at bugs.python.org
Thu Apr 25 08:56:24 CEST 2013


New submission from Guilherme Simões:

Something like:

sys.stdin = open('file')

works in Python but doesn't in the IDLE shell. After trying to do that, a dialog is open asking if the user wants to kill the program. This happens because the method "close" of the class "PseudoInputFile" (which was created in #17585) is called.

----------
components: IDLE
messages: 187759
nosy: Guilherme.Simões
priority: normal
severity: normal
status: open
title: Can't assign a different value for sys.stdin in IDLE
type: behavior
versions: Python 3.4

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


More information about the Python-bugs-list mailing list