John added the comment:

Please ignore my previous comment - now I understood what is going on. The 
`its` generator is a one-shot iterator so is exhausted the first time the while 
loop is run. Therefore, on subsequent loops, only empty tuples are yielded.

Still learning about generators... :)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22906>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to