GURU NEEDED : break a command into several lines and comment each line

David W. Hodgins dwhodgins at nomail.afraid.org
Thu Jan 13 17:08:46 EST 2011


On Thu, 13 Jan 2011 16:18:31 -0500, bolega <gnuist006 at gmail.com> wrote:

> how to break a command with several switches into more than one line
> AND to be able to put some comment on each line.
> command       \ # comment1
>          -sw1 \ # comment2

Not what you want to hear, but that will not work.  With the above,
the backslash is being used to escape the following space, rather
then a newline, as is required to continue the line.  Even if it
were to work that way, would the next line be considered a continuation
of the command, or of the comment?

Your stuck with

command       \
          -sw1
# comment1
# comment2

Regards, Dave Hodgins

-- 
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)



More information about the Python-list mailing list