Issue 1359053: Incorrect documentation of raw unidaq string literals (original) (raw)
In the Python Reference Manual, section 2.4.1 (String literals), the last paragraph contains the sentence:
When an "r" or "R" prefix is used in conjunction with a "u" or "U" prefix, then the \uXXXX escape sequence is processed while all other backslashes are left in the string.
I believe this is incorrect; \UXXXXXXXX sequences also seem to be processed (at least in Python 2.3.5 and 2.4.1), and it is also logical that they should be processed. The required change to the text is obvious:
When an "r" or "R" prefix is used in conjunction with a "u" or "U" prefix, then the \uXXXX and \UXXXXXXXX escape sequences are processed while all other backslashes are left in the string.