By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,996 Members | 1,343 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,996 IT Pros & Developers. It's quick & easy.

Python syntax r prefix to a string

P: n/a
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.

Aug 19 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Aug 19, 4:43 pm, goldtech <goldt...@worldpost.comwrote:
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...

Aug 19 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.