Re: Multi-line strings with formatting

2007-03-25 Thread Steve Holden
Steven D'Aprano wrote: > On Fri, 23 Mar 2007 19:39:53 -0700, Paul McGuire wrote: > >> (and I'm glad I'm not the only one who uses 'l' for a scratch list >> variable...) > > Yes, and come the revolution, every last one of you will be down the salt > mines. > Better that than up against the wall,

Re: Multi-line strings with formatting

2007-03-23 Thread Steven Bethard
On Fri, 2007-03-23 at 09:54 -0700, [EMAIL PROTECTED] wrote: > When constructing a particularly long and complicated command to be > sent to the shell, I usually do something like this, to make the > command as easy as possible to follow: > commands.getoutput( > 'mycommand -S %d -T %d ' % (

Re: Multi-line strings with formatting

2007-03-23 Thread Steven D'Aprano
On Fri, 23 Mar 2007 19:39:53 -0700, Paul McGuire wrote: > (and I'm glad I'm not the only one who uses 'l' for a scratch list > variable...) Yes, and come the revolution, every last one of you will be down the salt mines. I don't mind using capital L as a variable, but l looks too much like I and

Re: Multi-line strings with formatting

2007-03-23 Thread Paul McGuire
On Mar 23, 1:25 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Carsten Haese wrote: > > On Fri, 2007-03-23 at 09:54 -0700, [EMAIL PROTECTED] wrote: > >> When constructing a particularly long and complicated command to be > >> sent to the shell, I usually do something like this, to make the > >> comm

Re: Multi-line strings with formatting

2007-03-23 Thread Steve Holden
Carsten Haese wrote: > On Fri, 2007-03-23 at 09:54 -0700, [EMAIL PROTECTED] wrote: >> When constructing a particularly long and complicated command to be >> sent to the shell, I usually do something like this, to make the >> command as easy as possible to follow: >> >> commands.getoutput( >> 'm

Re: Multi-line strings with formatting

2007-03-23 Thread Carsten Haese
On Fri, 2007-03-23 at 09:54 -0700, [EMAIL PROTECTED] wrote: > When constructing a particularly long and complicated command to be > sent to the shell, I usually do something like this, to make the > command as easy as possible to follow: > > commands.getoutput( > 'mycommand -S %d -T %d ' % (s_

Multi-line strings with formatting

2007-03-23 Thread [EMAIL PROTECTED]
When constructing a particularly long and complicated command to be sent to the shell, I usually do something like this, to make the command as easy as possible to follow: commands.getoutput( 'mycommand -S %d -T %d ' % (s_switch, t_switch) + '-f1 %s -f2 %s ' % (filename1, filenam