diff options
author | Fred Drake <fdrake@acm.org> | 1998-10-01 20:41:57 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-10-01 20:41:57 (GMT) |
commit | c456d36bdeb07253b87028bcdd657cf40696db31 (patch) | |
tree | bc65c4ff715b10ed9810bde6e784d32ebc3d53d2 /Doc | |
parent | 82385872e9533e37d9590548912309a29dd82d15 (diff) | |
download | cpython-c456d36bdeb07253b87028bcdd657cf40696db31.zip cpython-c456d36bdeb07253b87028bcdd657cf40696db31.tar.gz cpython-c456d36bdeb07253b87028bcdd657cf40696db31.tar.bz2 |
Fix encoding of \ in some string literals in the discussion of "raw"
strings. Reported by Lorenzo M. Catucci <lorenzo@argon.roma2.infn.it>.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/ref/ref2.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex index e187c7a..c96031a 100644 --- a/Doc/ref/ref2.tex +++ b/Doc/ref/ref2.tex @@ -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 of two characters: a backslash and a lowercase `n'. String quotes can be escaped with a backslash, but the backslash remains in the string; -for example, \code{r"\""} is a valid string literal consisting of two -characters: a backslash and a double quote; \code{r"\"} is not a value +for example, \code{r"\e""} is a valid string literal consisting of two +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 backslashes). Specifically, \emph{a raw string cannot end in a single backslash} (since the backslash would escape the following quote |