mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
Merged revisions 79430 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79430 | brian.curtin | 2010-03-25 18:48:54 -0500 (Thu, 25 Mar 2010) | 2 lines Fix #6538. Markup RegexObject and MatchObject as classes. Patch by Ryan Arana. ........
This commit is contained in:
parent
da779df1d2
commit
b5f062703e
1 changed files with 176 additions and 173 deletions
|
@ -673,8 +673,9 @@ form.
|
||||||
Regular Expression Objects
|
Regular Expression Objects
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
Compiled regular expression objects support the following methods and
|
.. class:: RegexObject
|
||||||
attributes:
|
|
||||||
|
The :class:`RegexObject` class supports the following methods and attributes:
|
||||||
|
|
||||||
|
|
||||||
.. method:: RegexObject.match(string[, pos[, endpos]])
|
.. method:: RegexObject.match(string[, pos[, endpos]])
|
||||||
|
@ -772,7 +773,9 @@ attributes:
|
||||||
Match Objects
|
Match Objects
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
Match objects always have a boolean value of :const:`True`, so that you can test
|
.. class:: MatchObject
|
||||||
|
|
||||||
|
Match Objects always have a boolean value of :const:`True`, so that you can test
|
||||||
whether e.g. :func:`match` resulted in a match with a simple if statement. They
|
whether e.g. :func:`match` resulted in a match with a simple if statement. They
|
||||||
support the following methods and attributes:
|
support the following methods and attributes:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue