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