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:
Brian Curtin 2010-03-25 23:56:05 +00:00
parent da779df1d2
commit b5f062703e

View file

@ -673,8 +673,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]])
@ -772,7 +773,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: