Kaydet (Commit) c456d36b authored tarafından Fred Drake's avatar Fred Drake

Fix encoding of \ in some string literals in the discussion of "raw"

strings.  Reported by Lorenzo M. Catucci <lorenzo@argon.roma2.infn.it>.
üst 82385872
...@@ -350,8 +350,8 @@ quote the following character, but \emph{all backslashes are left in ...@@ -350,8 +350,8 @@ quote the following character, but \emph{all backslashes are left in
the string}. For example, the string literal \code{r"\e n"} consists the string}. For example, the string literal \code{r"\e n"} consists
of two characters: a backslash and a lowercase `n'. String quotes can of two characters: a backslash and a lowercase `n'. String quotes can
be escaped with a backslash, but the backslash remains in the string; be escaped with a backslash, but the backslash remains in the string;
for example, \code{r"\""} is a valid string literal consisting of two for example, \code{r"\e""} is a valid string literal consisting of two
characters: a backslash and a double quote; \code{r"\"} is not a value characters: a backslash and a double quote; \code{r"\e"} is not a value
string literal (even a raw string cannot end in an odd number of string literal (even a raw string cannot end in an odd number of
backslashes). Specifically, \emph{a raw string cannot end in a single backslashes). Specifically, \emph{a raw string cannot end in a single
backslash} (since the backslash would escape the following quote backslash} (since the backslash would escape the following quote
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment