<br><font size=2 face="Arial">Greetings All,</font>
<br>
<br><font size=2 face="Arial">I apologize if this has been brought up before, but</font>
<br><font size=2 face="Arial">I'm having a small issue with the handling of sys.stdin</font>
<br><font size=2 face="Arial">in Idle.</font>
<br>
<br><font size=2 face="Arial">I'm using a routine to mimic the c library function </font>
<br><font size=2 face="Arial">getch(), to get a single character from the keyboard.</font>
<br><font size=2 face="Arial">The function works in the standard python shell, but</font>
<br><font size=2 face="Arial">in Idle I get an error when I try to reference sys.stdin.fileno().</font>
<br>
<br><font size=2 face="Arial">Within the standard shell sys.stdin is a file object with</font>
<br><font size=2 face="Arial">a mode of 'r'. Looks like this in the interpreter:</font>
<br>
<br><font size=2 face="Arial"><open file '<stdin>', mode 'r' at 0xSome_address></font>
<br>
<br><font size=2 face="Arial">However, in Idle the object is quite different:</font>
<br>
<br><font size=2 face="Arial"><idlelib.rpc.RPCProxy instance at 0xSome_address></font>
<br>
<br><font size=2 face="Arial">and typing sys.stdin.fileno() returns an AttributeError: fileno.</font>
<br>
<br><font size=2 face="Arial">Is this a bug in idle, or is this normal? If it's normal is</font>
<br><font size=2 face="Arial">there a work around for it?</font>
<br>
<br><font size=2 face="Arial">Thanks for any replies and references to more info</font>
<br><font size=2 face="Arial">on this issue.</font>
<br>
<br><font size=2 face="Arial">Sincerely,</font>
<br>
<br><font size=2 face="Arial">Jason Burke</font>