[Python-checkins] cpython (3.2): Closes #14283: match() and search() are regex methods, not match methods.
georg.brandl
python-checkins at python.org
Wed Mar 14 08:07:44 CET 2012
http://hg.python.org/cpython/rev/544ed2cfb097
changeset: 75623:544ed2cfb097
branch: 3.2
parent: 75621:fd4b4650856f
user: Georg Brandl <georg at python.org>
date: Wed Mar 14 08:02:43 2012 +0100
summary:
Closes #14283: match() and search() are regex methods, not match methods.
files:
Doc/library/re.rst | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -944,16 +944,15 @@
.. 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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list