[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-12-10 Thread Chaitanya agrawal
Changes by Chaitanya agrawal chaitiagra...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file37407/issue22918-inexactComment.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22918

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 743ebaba14db by R David Murray in branch '3.4': #22918: Drop obsolete mention of 'keys' in datamodel __iter__ docs. https://hg.python.org/cpython/rev/743ebaba14db New changeset 1a1f577ca647 by R David Murray in branch 'default': Merge: #22918: Drop

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-12-10 Thread R. David Murray
R. David Murray added the comment: Thanks, Chaitanya. -- resolution: - fixed stage: needs patch - resolved status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22918

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-12-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think the first half of the sentence is enough: “For mappings, it should iterate over the keys of the container.” That should do it :-) -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since .iterkeys is gone, I thing the ', and' part should just be dropped. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22918 ___

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-11-23 Thread Éric Araujo
Éric Araujo added the comment: I think the first half of the sentence is enough: “For mappings, it should iterate over the keys of the container.” -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22918

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-11-22 Thread Éric Araujo
New submission from Éric Araujo: https://docs.python.org/3/reference/datamodel#object.__iter__ 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

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-11-22 Thread R. David Murray
R. David Murray added the comment: They aren't equivalent in python2, either. I think probably the wording should be changed to something like and the method keys() should return an iterable that provides access to the same data. -- nosy: +r.david.murray

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-11-22 Thread Éric Araujo
Éric Araujo added the comment: The Python 2 doc is alright, the same line says that d.__iter__() is equivalent to d.iterkeys(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22918 ___

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-11-22 Thread R. David Murray
R. David Murray added the comment: Ah, I see. So the python3 docs should say and should be equivalent to iter(dict.keys()) ? Or maybe the whole phrase should just be dropped. -- ___ Python tracker rep...@bugs.python.org