[Tutor] Embedding strings in a python script

Tony Cappellini cappy2112 at gmail.com
Thu Jan 4 07:43:11 CET 2007


Message: 5
Date: Thu, 4 Jan 2007 16:13:51 +1300
From: "John Fouhy" <john at fouhy.net>
Subject: Re: [Tutor] Embedding strings in a python script
To: tutor-python <tutor at python.org>
Message-ID:
       <5e58f2e40701031913v58717f34tf03ba7701a4071a5 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 04/01/07, Tony Cappellini <cappy2112 at gmail.com> wrote:
> What I'd like to know, is there a way I can embed/endcode the cvs string
> above in the python script, so that when that script is modified and
checked
> into cvs, that the cvs header string above will not be modified by cvs?

What about this:

cvs_header='''
#######################################
#
# @Header:@

I will give that a try. I don't know if cvs keys off of the word, the $, or
the word surround by any two symbols.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070103/4e0cd797/attachment.html 


More information about the Tutor mailing list