[Python-checkins] python/dist/src/Doc/ref ref2.tex,1.41,1.42
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Wed, 07 Aug 2002 09:53:19 -0700
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory usw-pr-cvs1:/tmp/cvs-serv10578
Modified Files:
ref2.tex
Log Message:
Apply character{} markup.
Index: ref2.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref2.tex,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** ref2.tex 7 Aug 2002 13:24:09 -0000 1.41
--- ref2.tex 7 Aug 2002 16:53:17 -0000 1.42
***************
*** 388,399 ****
otherwise have a special meaning, such as newline, backslash itself,
or the quote character. String literals may optionally be prefixed
! with a letter `r' or `R'; such strings are called \dfn{raw
! strings}\index{raw string} and use different rules for interpreting
! backslash escape sequences. A prefix of 'u' or 'U' makes the string
! a Unicode string. Unicode strings use the Unicode character set as
! defined by the Unicode Consortium and ISO~10646. Some additional
escape sequences, described below, are available in Unicode strings.
! The two prefix characters may be combined; in this case, `u' must
! appear before `r'.
In triple-quoted strings,
--- 388,399 ----
otherwise have a special meaning, such as newline, backslash itself,
or the quote character. String literals may optionally be prefixed
! with a letter \character{r} or \character{R}; such strings are called
! \dfn{raw strings}\index{raw string} and use different rules for interpreting
! backslash escape sequences. A prefix of \character{u} or \character{U}
! makes the string a Unicode string. Unicode strings use the Unicode character
! set as defined by the Unicode Consortium and ISO~10646. Some additional
escape sequences, described below, are available in Unicode strings.
! The two prefix characters may be combined; in this case, \character{u} must
! appear before \character{r}.
In triple-quoted strings,
***************
*** 403,408 ****
\code{'} or \code{"}.)
! Unless an `r' or `R' prefix is present, escape sequences in strings
! are interpreted according to rules similar
to those used by Standard C. The recognized escape sequences are:
\index{physical line}
--- 403,408 ----
\code{'} or \code{"}.)
! Unless an \character{r} or \character{R} prefix is present, escape
! sequences in strings are interpreted according to rules similar
to those used by Standard C. The recognized escape sequences are:
\index{physical line}
***************
*** 444,453 ****
escapes for non-Unicode string literals.
! When an `r' or `R' prefix is present, a character following a
! backslash is included in the string without change, and \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"\e""} is a valid string
literal consisting of two characters: a backslash and a double quote;
\code{r"\e"} is not a valid string literal (even a raw string cannot
--- 444,453 ----
escapes for non-Unicode string literals.
! When an \character{r} or \character{R} prefix is present, a character
! following a backslash is included in the string without change, and \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
! \character{n}. String quotes can be escaped with a backslash, but the
! backslash remains in the string; 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 valid string literal (even a raw string cannot
***************
*** 538,544 ****
\end{productionlist}
! Although both lower case `l' and upper case `L' are allowed as suffix
! for long integers, it is strongly recommended to always use `L', since
! the letter `l' looks too much like the digit `1'.
Plain integer decimal literals must be at most 2147483647 (i.e., the
--- 538,545 ----
\end{productionlist}
! Although both lower case \character{l} and upper case \character{L} are
! allowed as suffix for long integers, it is strongly recommended to always
! use \character{L}, since the letter \character{l} looks too much like the
! digit \character{1}.
Plain integer decimal literals must be at most 2147483647 (i.e., the