I'd like to thank everyone who posted on this thread. I was reading a Korn
shell manual the other day and could not figure out what a "here" document
was. I'm going to take another run at it with this conversation in mind!
Sometimes I can't see the path until I know where it goes.
John Purser
On Mon, Jan 03, 2005 at 11:54:06PM -, Alan Gauld wrote:
> There was a detailed thread on this recently either here
> or on usenet group comp.lang.python...
I checked the archives for this list but didn't see anything. I'll
try the ng. Thanks.
> The bottom line was to use string formatting
should try these things *before*
I hit the send button...
Alan G.
- Original Message -
From: "Alan Gauld" <[EMAIL PROTECTED]>
To: "Michael Powe" <[EMAIL PROTECTED]>;
Sent: Monday, January 03, 2005 11:54 PM
Subject: Re: [Tutor] here documents
> There
There was a detailed thread on this recently either here
or on usenet group comp.lang.python...
The bottom line was to use string formatting and triple
quoted strings...
msg = '''
A very long string that overspills
onto multiple lines and includes
my name which is %{name}s
and a number which is m
On Mon, Jan 03, 2005, Michael Powe wrote:
>Hello,
>
>In perl, I create variables of fairly involved text using here
>documents. For example,
>
>$msg = <<"EOF";
> a bunch of text here.
> ...
>EOF
>
>Is there an equivalent method in python? I usually use this method
>when creating help messages f