[portland] Generating .tex From Python Code

Rich Shepard rshepard at appl-ecosys.com
Fri Apr 4 01:15:33 CEST 2008


On Thu, 3 Apr 2008, Adam Lowry wrote:

> If you want to avoid backslashes being treated as control chars in
> strings, prefix them with r:
> str = r"[\%#]*"

   Ah, so! The 'r' means treat the string as raw text, then. I wondered what
it meant when I saw that used.

Thanks,

Rich

-- 
Richard B. Shepard, Ph.D.               |  Integrity            Credibility
Applied Ecosystem Services, Inc.        |            Innovation
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863


More information about the Portland mailing list