Raw Strings!
'Gerrit Holl
gerrit at nl.linux.org
Sat Jun 12 11:39:28 EDT 1999
On Sat, Jun 12, 1999 at 10:30:16AM -0500, SunitJoshi wrote:
> From: "SunitJoshi" <smjoshi at bellsouth.net>
> Newsgroups: comp.lang.python
> Subject: Raw Strings!
> Date: Sat, 12 Jun 1999 10:30:16 -0500
> To: python-list at python.org
>
> Hi All
> If someone could show me how to use raw-strings with variables, I
> would really appreciate it.
> For e.g.: if str_path = "C:\\windows\\temp"
>
var = r"D:\\stupid\\windows\\path"
note the "r" of "raw" before the string. This is always the case.
9 minutes and i reply... hmm, not bad :-)
regards,
Gerrit.
More information about the Python-list
mailing list