From: MHammond at skippinet.com.au (Mark Hammond)
Date: Fri, 30 Apr 1999 09:56:07 +1000
Subject: How to read stdin while debuggingin PythonWin
References: <7g9utu$kin$1@nnrp1.dejanews.com>
Message-ID: <7garhi$hqi$1@m2.c2.telstra-mm.net.au>
X-UID: 699                                                  

he he - this is broken.  Pythonwin does not provide a valid stdin (like it
does for stdout and stderr).

However, if you use input or raw_input, a dialog will be displayed.

Im not sure why this would be different under the debugger, but when I try
that from the Pythonwin window I get:
>>> sys.stdin.read()
Traceback (innermost last):
  File "<interactive input>", line 0, in ?
IOError: [Errno 9] Bad file descriptor
>>>

Which is what I expect.

Mark.







