]> granicus.if.org Git - python/commitdiff
Fix markup.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 7 Oct 2012 09:09:36 +0000 (12:09 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 7 Oct 2012 09:09:36 +0000 (12:09 +0300)
Doc/library/operator.rst
Doc/reference/datamodel.rst

index 1cd87fca2179cbe1dfe0e9522532a4829c1f111e..877a79069b65a07455f2f2a7844f512f4dbe0d18 100644 (file)
@@ -238,8 +238,8 @@ their character equivalents.
 .. 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
 
index 111ad8b0ecd4ca49c1ddbe04df7a450acc016c92..66dc180d2d133c47d8a912edee016f4a16d9dffa 100644 (file)
@@ -1807,7 +1807,7 @@ through the container; for mappings, :meth:`__iter__` should be the same as
 
 .. 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.