[docs] 2.1. Invoking the Interpreter
Georg Brandl
georg at python.org
Tue Dec 28 10:26:04 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 26.12.2010 11:53, schrieb Suzen, Mehmet:
> Hi,
>
> There is a bug or an ambiguity on
>
> http://docs.python.org/tutorial/interpreter.html
>
> It says "Note that there is a difference between 'python file' and
> 'python <file'. In the latter case, input requests from the
> program,..."
>
> Must read as follows;
> Execute statements from a file (inputs requested from stdin)
> $ python file.py
> Execute statements from a file (inputs requested from file)
> $ python file.py < input
>
>
> While python <input does not work in my case using Python 2.6.5
> (r265:79063, Apr 16 2010, 13:09:56)
> [GCC 4.4.3] on linux2.
Hi Mehmet,
this is indeed a confusing paragraph; it is however correct as written.
The intention is to tell the reader that
python < file
will read the code from *file* and doesn't allow any input to stdin
afterwards.
I've removed the paragraph completely since it is definitely not material
for a tutorial anyway.
regards,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
iEYEARECAAYFAk0ZrSsACgkQN9GcIYhpnLCV4ACcC27gi93aCewd2ZLsiNL5nFCs
bB4AnjbiBfRj6AU4iY0kqjAqxDorslUF
=Le+y
-----END PGP SIGNATURE-----
More information about the docs
mailing list