[docs] How to start IDLE?

Sandro Tosi sandro.tosi at gmail.com
Mon Aug 1 11:20:22 CEST 2011


On Sat, Jul 30, 2011 at 23:40, Křištof Želechovski
<giecrilj at stegny.2a.pl> wrote:
> The section 24.5.4.1. "Command line usage" says:
>
>> idle.py [-c command] [-d] [-e] [-s] [-t title] [arg] ...
>
> There is no ‘idle.py’, the command is ‘idle’.

Well, it's not completely right: in the standard library there's the
'idlelib' that contains the scripts idle.py . At installation time, it
can be renamed, or symliked to a different filename, but idle.py
exists.

>> If the script name is ‘-‘, no script is executed but an interactive Python session is started; the arguments are still available in sys.argv.
>
> { idle -; } waits for standard input.

exactly, an interactive session :) you can write python commands in
the stdin and then press ctrl-d and have idle executing them, showing
the output; f.e.: echo "import sys; print sys.argv" | idle - "foobar"

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list