[Python-ideas] Generator unpacking
Edward Minnix
egregius313 at gmail.com
Fri Feb 12 07:09:38 EST 2016
Hello,
I am a new programmer and have been using Python for a few months.
I was experimenting the other day with unpacking (lists, tuples, etc.) And
I realized something:
when you type:
>>> a, b, *rest = count()
The interpreter gets caught in an infinite loop which I could not kill
without terminating my REPL.
Would there be a way to add generators to the unpackables, even if it was
only in the front?
Thanks,
Ed M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160212/d7bba724/attachment-0001.html>
More information about the Python-ideas
mailing list