Joshua Ginsberg wrote: > >>> 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?
the "r" prefix doesn't change how string literals are parsed; it only affects how they are converted to string objects. </F> -- http://mail.python.org/mailman/listinfo/python-list