raw strings and \

plahey at alumni.caltech.edu plahey at alumni.caltech.edu
Sun Mar 5 03:49:25 EST 2006


I thought I understood raw strings, then I got bitten by this:

x=r'c:\blah\'

which is illegal!  I thought that \ had no special meanning in a raw
string so why can't it be the last character?

making me do:

x=r'c:\blah' '\\'

is just silly...




More information about the Python-list mailing list