Need help in passing a "-c command" argument to the interactive shell.

Duncan Booth duncan.booth at invalid.invalid
Wed Jul 29 08:26:11 EDT 2009


Bill <bsagert at gmail.com> wrote:

> On my windows box I type => c:\x>python -c "import re"
> 
> The result is => c:\x>
> 
> In other words, the Python interactive shell doesn't even open. What
> am I doing wrong?
> 
> I did RTFM at http://www.python.org/doc/1.5.2p2/tut/node4.html on
> argument passing, but to no avail.

Why are you reading documentation for Python 1.5? There have been just a 
few releases since then.

Try reading http://docs.python.org/using/cmdline.html instead, specifically 
the part about the -i command line option. Or you could just try "python 
-?" at a command prompt.

-- 
Duncan Booth http://kupuguy.blogspot.com



More information about the Python-list mailing list