
paddy3118 at googlemail
Aug 22, 2008, 9:07 PM
Post #6 of 6
(221 views)
Permalink
|
On Aug 22, 10:03 pm, Matimus <mccre...@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 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. -- http://mail.python.org/mailman/listinfo/python-list
|