]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Closes #14283: match() and search() are regex methods, not match methods.
authorGeorg Brandl <georg@python.org>
Wed, 14 Mar 2012 07:02:43 +0000 (08:02 +0100)
committerGeorg Brandl <georg@python.org>
Wed, 14 Mar 2012 07:02:43 +0000 (08:02 +0100)
Doc/library/re.rst

index 93224f1fe96025806c8c8baad55b281c47bd99e6..5a14408ebac3151b92df0cfdc69b04971c34bfde 100644 (file)
@@ -944,16 +944,15 @@ support the following methods and attributes:
 .. attribute:: match.pos
 
    The value of *pos* which was passed to the :meth:`~regex.search` or
-   :meth:`~regex.match` method of a :ref:`match object <match-objects>`.  This
-   is the index into the string at which the RE engine started looking for a
-   match.
+   :meth:`~regex.match` method of a :ref:`regex object <re-objects>`.  This is
+   the index into the string at which the RE engine started looking for a match.
 
 
 .. attribute:: match.endpos
 
    The value of *endpos* which was passed to the :meth:`~regex.search` or
-   :meth:`~regex.match` method of a :ref:`match object <match-objects>`.  This
-   is the index into the string beyond which the RE engine will not go.
+   :meth:`~regex.match` method of a :ref:`regex object <re-objects>`.  This is
+   the index into the string beyond which the RE engine will not go.
 
 
 .. attribute:: match.lastindex