Python one-liner??

  • Thread starter srinivasan srinivas
  • Start date
M

Matimus

Do we have python one-liner like perl one-liner 'perl -e'??


The answer is python -c...

but python -h is useful too.

Matt
 
P

Paddy

The answer is python -c...

but python -h is useful too.

Matt

And Python is not optimised for one-liner solutions.
I have been known to construct multi-line -c arguments using
the bash shell on Unix (as bash supports multi-line quotes),
but creating and then deleting a temporary file saves me from
'quoting hell'.

- Paddy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top