ere it goes.
John Purser
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Michael Powe
Sent: Monday, January 03, 2005 14:55
To: tutor@python.org
Subject: [Tutor] here documents
Hello,
In perl, I create variables of fairly involved text using here
docum
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
number which is my age: %{age}d
'''
print msg % vars()
HTH,
Alan G.
- Original Message -
From: "Michael Powe" <[EMAIL PROTECTED]>
To:
Sent: Monday, January 03, 2005 10:54 PM
Subject: [Tutor] here documents
> Hello,
>
> In perl, I create variabl
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
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 for scripts -- put all the text into a
variable and the