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> 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 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 instead, specifically 
the part about the -i command line option. Or you could just try "python 
-?" at a command prompt.

Duncan Booth

More information about the Python-list mailing list