[Python-checkins] python/dist/src/Doc/lib libre.tex,1.99,1.100
akuchling@users.sourceforge.net
akuchling@users.sourceforge.net
Tue, 13 May 2003 07:40:27 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv26337
Modified Files:
libre.tex
Log Message:
[Bug #732124] Clarify .pos, .endpos by saying 'method' instead of 'function'
Also, put match() description before search(); search() refers to match()
Index: libre.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libre.tex,v
retrieving revision 1.99
retrieving revision 1.100
diff -C2 -d -r1.99 -r1.100
*** libre.tex 3 May 2003 10:59:13 -0000 1.99
--- libre.tex 13 May 2003 14:40:24 -0000 1.100
***************
*** 639,654 ****
attributes:
- \begin{methoddesc}[RegexObject]{search}{string\optional{, pos\optional{,
- endpos}}}
- Scan through \var{string} looking for a location where this regular
- expression produces a match, and return a
- corresponding \class{MatchObject} instance. Return \code{None} if no
- position in the string matches the pattern; note that this is
- different from finding a zero-length match at some point in the string.
-
- The optional \var{pos} and \var{endpos} parameters have the same
- meaning as for the \method{match()} method.
- \end{methoddesc}
-
\begin{methoddesc}[RegexObject]{match}{string\optional{, pos\optional{,
endpos}}}
--- 639,642 ----
***************
*** 680,683 ****
--- 668,683 ----
\end{methoddesc}
+ \begin{methoddesc}[RegexObject]{search}{string\optional{, pos\optional{,
+ endpos}}}
+ Scan through \var{string} looking for a location where this regular
+ expression produces a match, and return a
+ corresponding \class{MatchObject} instance. Return \code{None} if no
+ position in the string matches the pattern; note that this is
+ different from finding a zero-length match at some point in the string.
+
+ The optional \var{pos} and \var{endpos} parameters have the same
+ meaning as for the \method{match()} method.
+ \end{methoddesc}
+
\begin{methoddesc}[RegexObject]{split}{string\optional{,
maxsplit\code{ = 0}}}
***************
*** 813,825 ****
\begin{memberdesc}[MatchObject]{pos}
! The value of \var{pos} which was passed to the
! \function{search()} or \function{match()} function. This is the index
! into the string at which the RE engine started looking for a match.
\end{memberdesc}
\begin{memberdesc}[MatchObject]{endpos}
! The value of \var{endpos} which was passed to the
! \function{search()} or \function{match()} function. This is the index
! into the string beyond which the RE engine will not go.
\end{memberdesc}
--- 813,826 ----
\begin{memberdesc}[MatchObject]{pos}
! The value of \var{pos} which was passed to the \function{search()} or
! \function{match()} method of the \class{RegexObject}. This is the
! index into the string at which the RE engine started looking for a
! match.
\end{memberdesc}
\begin{memberdesc}[MatchObject]{endpos}
! The value of \var{endpos} which was passed to the \function{search()}
! or \function{match()} method of the \class{RegexObject}. This is the
! index into the string beyond which the RE engine will not go.
\end{memberdesc}