From: Fred Drake Date: Thu, 1 Oct 1998 20:41:57 +0000 (+0000) Subject: Fix encoding of \ in some string literals in the discussion of "raw" X-Git-Tag: v1.5.2a2~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c456d36bdeb07253b87028bcdd657cf40696db31;p=python Fix encoding of \ in some string literals in the discussion of "raw" strings. Reported by Lorenzo M. Catucci . --- diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex index e187c7aede..c96031ad72 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