[Python-checkins] cpython: Fix markup.
ezio.melotti
python-checkins at python.org
Sun Oct 7 11:09:46 CEST 2012
http://hg.python.org/cpython/rev/94205f8a6ded
changeset: 79563:94205f8a6ded
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sun Oct 07 12:09:36 2012 +0300
summary:
Fix markup.
files:
Doc/library/operator.rst | 4 ++--
Doc/reference/datamodel.rst | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst
--- a/Doc/library/operator.rst
+++ b/Doc/library/operator.rst
@@ -238,8 +238,8 @@
.. function:: length_hint(obj, default=0)
Return an estimated length for the object *o*. First trying to return its
- actual length, then an estimate using ``__length_hint__``, and finally
- returning the default value.
+ actual length, then an estimate using :meth:`object.__length_hint__`, and
+ finally returning the default value.
.. versionadded:: 3.4
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1807,7 +1807,7 @@
.. method:: object.__length_hint__(self)
- Called to implement ``operator.length_hint``. Should return an estimated
+ Called to implement :func:`operator.length_hint`. Should return an estimated
length for the object (which may be greater or less than the actual length).
The length must be an integer ``>=`` 0. This method is purely an
optimization and is never required for correctness.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list