Python syntax r prefix to a string

Paddy paddy3118 at googlemail.com
Sun Aug 19 17:56:38 CEST 2007


On Aug 19, 4:43 pm, goldtech <goldt... at worldpost.com> wrote:
> Does anyone know this syntax and could link me to an explanation?
>
> Something like:
>
> Workspace = r'C:\foobar\mystuff\xyz'
>
> What's that "r" doing? Sometimes I see a "u" too.
>
> Explanation appreciated.
>
> Thanks,
> Lee G.

Search for raw strings and unicode stringss...




More information about the Python-list mailing list