How to read stdin while debuggingin PythonWin
Mark Hammond
MHammond at skippinet.com.au
Thu Apr 29 19:56:07 EDT 1999
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.
More information about the Python-list
mailing list