Raw string fu

Joshua Ginsberg listspam at flowtheory.net
Wed Oct 26 14:09:27 EDT 2005


>>> r'\'
File "<stdin>", line 1
r'\'
^
SyntaxError: EOL while scanning single-quoted string
>>> r'\\'
'\\\\'

Does that seem wrong to anybody else? Shouldn't the first one be
syntactically correct?

-jag




More information about the Python-list mailing list