[Python-ideas] Generator unpacking

Ian Kelly ian.g.kelly at gmail.com
Mon Feb 15 10:59:25 EST 2016


On Feb 15, 2016 1:55 AM, "Chris Angelico" <rosuav at gmail.com> wrote:
> Allow me to take this opportunity to reiterate the recommendation for
> "reiterable", which has come up enough times that I've completely
> forgotten who first came up with it. An iterable can be iterated over
> at least once; a reiterable can be iterated over more than once, and
> will often produce the same sequence of values each time.

Iterators can be iterated over more than once. They're just required to be
empty on the second and subsequent iterations.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160215/405560b0/attachment.html>


More information about the Python-ideas mailing list