This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Devin Jeanpierre
Recipients Devin Jeanpierre
Date 2011-07-03.07:07:43
SpamBayes Score 8.5843985e-06
Marked as misclassified No
Message-id <1309676864.45.0.345140180481.issue12475@psf.upfronthosting.co.za>
In-reply-to
Content
It's probably best shown by example:

http://ideone.com/4YkqV

Have fun! This one looks hard.

Some notes: Exchanging g2() for iter([1]) makes this go away. Wrapping g2 inside a non-generator iterator does not make this go away. 

Removing the call to next(it) after it = g2() makes the problem go away, as does replacing those two lines with next(g2()).

The file used in that ideone paste is attached for your convenience.

---

Debugging is impractical for me with this bug in existence. It never stopped printing the traceback before I killed the process. (And let's forget about debug prints!)
History
Date User Action Args
2011-07-03 07:07:44Devin Jeanpierresetrecipients: + Devin Jeanpierre
2011-07-03 07:07:44Devin Jeanpierresetmessageid: <1309676864.45.0.345140180481.issue12475@psf.upfronthosting.co.za>
2011-07-03 07:07:43Devin Jeanpierrelinkissue12475 messages
2011-07-03 07:07:43Devin Jeanpierrecreate