syntax for -c cmd

Edward Elliott nobody at 127.0.0.1
Fri May 12 04:50:36 EDT 2006


Fredrik Lundh wrote:

> hint:
> 
>     $ python -c 'import sys; print sys.argv' 'else: print "no"'
> 
> </F>

Yeah the man page knows all.

About the only time I use python on the command line is with the timeit
module, which evals all arguments given.  Hence the confusion.

-- 
Edward Elliott
UC Berkeley School of Law (Boalt Hall)
complangpython at eddeye dot net



More information about the Python-list mailing list