[Python-checkins] CVS: python/dist/src/Doc/lib libre.tex,1.54,1.55

A.M. Kuchling python-dev@python.org
Thu, 5 Oct 2000 05:35:33 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv6488

Modified Files:
	libre.tex 
Log Message:
Document expand() method of MatchObjects


Index: libre.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libre.tex,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -r1.54 -r1.55
*** libre.tex	2000/09/25 17:52:40	1.54
--- libre.tex	2000/10/05 12:35:29	1.55
***************
*** 598,601 ****
--- 598,610 ----
  \class{MatchObject} instances support the following methods and attributes:
  
+ \begin{methoddesc}[MatchObject]{expand}{template}
+  Return the string obtained by doing backslash substitution on the
+ template string \var{template}, as done by the \method{sub()} method.
+ Escapes such as \samp{\e n} are converted to the appropriate
+ characters, and numeric backreferences (\samp{\e 1}, \samp{\e 2}) and named
+ backreferences (\samp{\e g<1>}, \samp{\e g<name>}) are replaced by the contents of the
+ corresponding group.
+ \end{methoddesc}
+ 
  \begin{methoddesc}[MatchObject]{group}{\optional{group1, \moreargs}}
  Returns one or more subgroups of the match.  If there is a single