Altering sys.stdin

Draic Kin drekin at gmail.com
Sat Feb 23 14:00:55 CET 2013


Hello,
it seems that Python interactive console actually doesn't use sys.stdin to
read input (it just affects e.g. input() function). However it uses
sys.stdin.encoding. Intepreter actually freezes when an object without
encoding attribute is assigned to sys.stdin. Why is that? I that a correct
behavior? Is there any workaround to alter input object for interactive
console?

Thank you, Drekin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130223/4b2b91c7/attachment.html>


More information about the Python-list mailing list