Graham Wideman <initcont...@grahamwideman.com> added the comment: Thanks to all for your patient comments. I think I am resigned to raw-string forever being medium-rare-string :-).
Perhaps it's obvious once you get over the initial shock of non-rawness, but workarounds for the disallowed trailing backslash include (note the final space character): mydir = r"C:\somedir\ ".rstrip() or... mydir = r"C:\somedir\ "[:-1] It might be worth mentioning one of these in the raw string docs to emphasize that there is this gotcha, that it's easy to fix, and prompting this as an idiom that becomes familiar in applications where it's needed. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1271> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com