summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-03-14 07:02:43 (GMT)
committerGeorg Brandl <georg@python.org>2012-03-14 07:02:43 (GMT)
commit69c7a69cbec2a69dcfd66f60f601770b61ffda93 (patch)
tree516d85c1ed646ea1994ef0b38aba9942bc1e4295 /Doc
parent7441a7aedd251d529eb14eff9a16708e9cb32409 (diff)
downloadcpython-69c7a69cbec2a69dcfd66f60f601770b61ffda93.zip
cpython-69c7a69cbec2a69dcfd66f60f601770b61ffda93.tar.gz
cpython-69c7a69cbec2a69dcfd66f60f601770b61ffda93.tar.bz2
Closes #14283: match() and search() are regex methods, not match methods.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/re.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 93224f1..5a14408 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -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