Browse Source
bpo-37913: Link to NotImplemented from new docs (GH-15860)
pull/15865/head
Steve Dower
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
Doc/reference/datamodel.rst
|
|
|
@ -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 |
|
|
|
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 |
|
|
|
*NotImplemented*, which is treated the same as if the ``__length_hint__`` |
|
|
|
method didn't exist at all. This method is purely an optimization and is |
|
|
|
never required for correctness. |
|
|
|
:const:`NotImplemented`, which is treated the same as if the |
|
|
|
``__length_hint__`` method didn't exist at all. This method is purely an |
|
|
|
optimization and is never required for correctness. |
|
|
|
|
|
|
|
.. versionadded:: 3.4 |
|
|
|
|
|
|
|
|