Commit a39a4c74 authored by Steve Dower's avatar Steve Dower Committed by GitHub

bpo-37913: Link to NotImplemented from new docs (GH-15860)

parent 009ef295
...@@ -2156,9 +2156,9 @@ through the container; for mappings, :meth:`__iter__` should be the same as ...@@ -2156,9 +2156,9 @@ through the container; for mappings, :meth:`__iter__` should be the same as
Called to implement :func:`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). length for the object (which may be greater or less than the actual length).
The length must be an integer ``>=`` 0. The return value may also be The length must be an integer ``>=`` 0. The return value may also be
*NotImplemented*, which is treated the same as if the ``__length_hint__`` :const:`NotImplemented`, which is treated the same as if the
method didn't exist at all. This method is purely an optimization and is ``__length_hint__`` method didn't exist at all. This method is purely an
never required for correctness. optimization and is never required for correctness.
.. versionadded:: 3.4 .. versionadded:: 3.4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment