[Python-checkins] python/dist/src/Doc/ref ref2.tex,1.39,1.40

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Tue, 06 Aug 2002 15:36:28 -0700


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory usw-pr-cvs1:/tmp/cvs-serv25850

Modified Files:
	ref2.tex 
Log Message:
Document handling of raw-unicode-escapes.  Closes SF bug 587087. 


Index: ref2.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref2.tex,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** ref2.tex	6 Aug 2002 21:36:06 -0000	1.39
--- ref2.tex	6 Aug 2002 22:36:26 -0000	1.40
***************
*** 458,461 ****
--- 458,469 ----
  as part of the string, \emph{not} as a line continuation.
  
+ When an `r' or `R' prefix is used in conjunction with a `u' or `U'
+ prefix, then the \uXXXX escape sequence is processed while \emph{all other
+ backslashes are left in the string}.  For example, the string literal
+ \code{ur"\u0062\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
+ remain in the string.  As a result, \uXXXX escape sequences are
+ only recognized when there are an odd number of backslashes.
  
  \subsection{String literal concatenation\label{string-catenation}}