mirror of https://github.com/python/cpython
Fix #6538. Markup RegexObject and MatchObject as classes. Patch by Ryan Arana.
This commit is contained in:
parent
06638735fc
commit
fbe519975b
|
@ -685,8 +685,9 @@ form.
|
|||
Regular Expression Objects
|
||||
--------------------------
|
||||
|
||||
Compiled regular expression objects support the following methods and
|
||||
attributes:
|
||||
.. class:: RegexObject
|
||||
|
||||
The :class:`RegexObject` class supports the following methods and attributes:
|
||||
|
||||
|
||||
.. method:: RegexObject.match(string[, pos[, endpos]])
|
||||
|
@ -784,7 +785,9 @@ attributes:
|
|||
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
|
||||
support the following methods and attributes:
|
||||
|
||||
|
|
Loading…
Reference in New Issue