Walter Doerwald, in private mail, reminded me of a third use case for raw strings: docstrings containing example code using backslashes. Here it really seems wrong to interpolate \u and \U.
So this is swaying me towards changing this behavior: r"\u1234" will be a string of length 6, and r"\U00012345" one of length 10. I'm still on the fence about the trailing backslash; I personally prefer to write Windows paths using regular strings and doubled backslashes. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
