mirror of https://github.com/python/cpython
Bug #1359053: Doc: \Uxxxxxxxx escapes _are_ interpreted in raw unicode strings
This commit is contained in:
parent
4a5a91838b
commit
f96f5f5bbe
|
@ -514,8 +514,9 @@ as part of the string, \emph{not} as a line continuation.
|
|||
|
||||
When an \character{r} or \character{R} prefix is used in conjunction
|
||||
with a \character{u} or \character{U} prefix, then the \code{\e uXXXX}
|
||||
escape sequence is processed while \emph{all other backslashes are
|
||||
left in the string}. For example, the string literal
|
||||
and \code{\e UXXXXXXXX} escape sequences are processed while
|
||||
\emph{all other backslashes are left in the string}.
|
||||
For example, the string literal
|
||||
\code{ur"\e{}u0062\e n"} consists of three Unicode characters: `LATIN
|
||||
SMALL LETTER B', `REVERSE SOLIDUS', and `LATIN SMALL LETTER N'.
|
||||
Backslashes can be escaped with a preceding backslash; however, both
|
||||
|
|
Loading…
Reference in New Issue