diff options
| author | R David Murray <rdmurray@bitdance.com> | 2014-12-10 09:51:01 -0500 |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2014-12-10 09:51:01 -0500 |
| commit | c9f5f2ddc7ca32af4d103e641395420d9d9986a5 (patch) | |
| tree | 2c608a83d8ed0685a7c9da57debc39f077ea77e1 | |
| parent | 884afd92f5a194e326df2be8279d4ab160c7b0c9 (diff) | |
| download | cpython-git-c9f5f2ddc7ca32af4d103e641395420d9d9986a5.tar.gz | |
#22918: Drop obsolete mention of 'keys' in datamodel __iter__ docs.
Patch by Chaitanya Agrawal.
| -rw-r--r-- | Doc/reference/datamodel.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 43abf82766..618c257d01 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1926,8 +1926,7 @@ through the container; for mappings, :meth:`__iter__` should be the same as This method is called when an iterator is required for a container. This method should return a new iterator object that can iterate over all the objects in the - container. For mappings, it should iterate over the keys of the container, and - should also be made available as the method :meth:`keys`. + container. For mappings, it should iterate over the keys of the container. Iterator objects also need to implement this method; they are required to return themselves. For more information on iterator objects, see :ref:`typeiter`. |
