Re: Newbie question: non-escaping backslashes before placeholders
Aahz <[email protected]> Thu, 22 Oct 2009 08:14:11 -0700
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Organization | The Cat & Dragon |
| Message-ID | <[email protected]> |
On Thu, Oct 22, 2009, Jon Mills wrote:
>
> from Cheetah.Template import Template
> t = Template('#config_file "c:\$p1\$p2"')
t = Template('#config_file r"c:\$p1\$p2"')
Note the 'r"' above -- I haven't tested that, though. It might need to
be instead
t = Template(r'#config_file "c:\$p1\$p2"')
or even both
t = Template(r'#config_file r"c:\$p1\$p2"')
--
Aahz ([email protected]) <*> http://www.pythoncraft.com/
Member of the Groucho Marx Fan Club
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference