Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9f5f2d

Browse files
committed
#22918: Drop obsolete mention of 'keys' in datamodel __iter__ docs.
Patch by Chaitanya Agrawal.
1 parent 884afd9 commit c9f5f2d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Doc/reference/datamodel.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,8 +1926,7 @@ through the container; for mappings, :meth:`__iter__` should be the same as
19261926

19271927
This method is called when an iterator is required for a container. This method
19281928
should return a new iterator object that can iterate over all the objects in the
1929-
container. For mappings, it should iterate over the keys of the container, and
1930-
should also be made available as the method :meth:`keys`.
1929+
container. For mappings, it should iterate over the keys of the container.
19311930

19321931
Iterator objects also need to implement this method; they are required to return
19331932
themselves. For more information on iterator objects, see :ref:`typeiter`.

0 commit comments

Comments
 (0)