Python one-liner??

James Matthews nytrokiss at gmail.com
Fri Aug 22 17:12:56 EDT 2008


What i use them for is to test for packages. e.g python -c "import django"


On Fri, Aug 22, 2008 at 2:03 PM, Matimus <mccredie at gmail.com> wrote:

> > Do we have python one-liner like perl one-liner 'perl -e'??
>
>
> The answer is python -c...
>
> but python -h is useful too.
>
> Matt
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
http://www.goldwatches.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080822/fbd799b6/attachment-0001.html>


More information about the Python-list mailing list