Martin Panter added the comment:

Serhiy, your patch looks like a worthwhile improvement because it adds proper 
error checking and handling. However I suspect this original bug is actually a 
side effect of Issue 24402. The code in question shouldn’t even be running, 
because sys.stdout is not the original output file descriptor, and is not a 
terminal.

----------
dependencies: +input() uses sys.__stdout__ instead of sys.stdout for prompt
nosy: +martin.panter

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8256>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to