[issue10029] "Equivalent to" code for zip is wrong in Python 3

Alexander Belopolsky report at bugs.python.org
Fri Oct 8 20:25:26 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Thu, Oct 7, 2010 at 3:37 PM, Raymond Hettinger
<report at bugs.python.org> wrote:
..
> I'll update the docs with an equivalent that works and that has a comment showing when the
> StopIteration is raised and caught.
>

In this case, I wonder if "equivalent to" code should be added to the
section for enumerate() and map().  Also since any() and all() have
"equivalent to" code, I think min(), max() and sum() deserve it as
well.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10029>
_______________________________________


More information about the Python-bugs-list mailing list