Skip to content

Commit 5fb2631

Browse files
committed
Explicitly document the fact that the search method returns a MatchObject.
(Reported by Gary Herron.)
1 parent 4ecd85a commit 5fb2631

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/lib/libre.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ \subsection{Regular Expression Objects \label{re-objects}}
506506
\begin{methoddesc}[RegexObject]{search}{string\optional{, pos}\optional{,
507507
endpos}}
508508
Scan through \var{string} looking for a location where this regular
509-
expression produces a match. Return \code{None} if no
509+
expression produces a match, and return a
510+
corresponding \class{MatchObject} instance. Return \code{None} if no
510511
position in the string matches the pattern; note that this is
511512
different from finding a zero-length match at some point in the string.
512513

0 commit comments

Comments
 (0)