[Python-checkins] python/dist/src/Doc/ref ref2.tex,1.34.6.2,1.34.6.3

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Tue, 06 Aug 2002 15:39:33 -0700


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

Modified Files:
      Tag: release22-maint
	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.34.6.2
retrieving revision 1.34.6.3
diff -C2 -d -r1.34.6.2 -r1.34.6.3
*** ref2.tex	18 Jun 2002 19:18:02 -0000	1.34.6.2
--- ref2.tex	6 Aug 2002 22:39:30 -0000	1.34.6.3
***************
*** 424,427 ****
--- 424,435 ----
  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}}