Two problems with backslashes

Emile van Sebille emile at
Wed Jul 4 17:39:23 CEST 2001

The r prefix turns the string into a raw string, essentially turning off
escape recognition, except in the last position.

see 2.4.1 String Literals in the reference manual.


Emile van Sebille
emile at

"Courageous" <jkraska1 at> wrote in message
news:bde6kt0c8f8fdfcf204qprakatj9v9ooa2 at
> >    path = r'e:\test\test.txt'
> What am I looking at here, and how do Iearn more about it?
> IOW, what's the 'r' do, and is there more to this?
> C//

More information about the Python-list mailing list