Altering sys.stdin

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

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

Thank you, Drekin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list