mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Explicitly document the fact that the search method returns a MatchObject.
(Reported by Gary Herron.)
This commit is contained in:
parent
4ecd85aad7
commit
5fb2631ff9
1 changed files with 2 additions and 1 deletions
|
|
@ -506,7 +506,8 @@ 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. Return \code{None} if no
|
||||
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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue