[docs] errant documentation in Tutorial Section 2.1 (2.7.2 and 3.2 are affected)?

Aron Ahmadia aron at ahmadia.net
Tue Aug 23 13:57:02 CEST 2011


"When a script file is used, it is sometimes useful to be able to run the
script and enter interactive mode afterwards. This can be done by passing *
-i*<http://docs.python.org/using/cmdline.html#cmdoption-unittest-discover-i>
before
the script. (This does not work if the script is read from standard input,
for the same reason as explained in the previous paragraph.)"

Reading the previous paragraph doesn't explain why the Python interpreter
cannot enter interactive mode when a file has replaced stdin, so I am left
to guess that perhaps it is because once the file has been connected to
standard input the interpreter can no longer receive input from the user's
tty.
Thanks,
Aron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20110823/21a6ac8f/attachment.html>


More information about the docs mailing list