Fix #6538. Markup RegexObject and MatchObject as classes. Patch by Ryan Arana.

This commit is contained in:
Brian Curtin 2010-03-25 23:48:54 +00:00
parent 06638735fc
commit fbe519975b
1 changed files with 176 additions and 173 deletions

View File

@ -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: