more on unescaping escapes
bvdp
bob at mellowood.ca
Mon Feb 23 19:18:24 EST 2009
andrew cooke wrote:
> do you know that a string with the letter "r" in front doesn't escape
> slashes? it's intended for regular expressions, but would simplify things
> for you here too.
>
> just do
>
> a=r'c:\\Program Files\test'
>
Yes, I knew that. Unfortunately in my program loop I really don't have
the opportuity to use a raw string.
But, good reminder. Thanks.
More information about the Python-list
mailing list