Why can't a raw string end with a backslash (\)? example a=r"c:\path\" doesn't work a=r"c:\path" works fine Thanks, Larry BTW - I'm using ActiveState PythonWin (if makes any difference).