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 Anssi.Kääriäinen
Recipients Anssi.Kääriäinen
Date 2013-03-18.20:34:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A generator is leaked to gc.garbage in a situation where `__del__` isn't defined. See the attached file for as-minimalistic test case as I could make. Tested on Python 3.3.0, 3.2.3 and 2.7.3.

Note that if the try-except is removed from iterator(), then there is no leak.

This is related to Django bug #19895 (
Date User Action Args
2013-03-18 20:34:25Anssi.Kääriäinensetrecipients: + Anssi.Kääriäinen
2013-03-18 20:34:25Anssi.Kääriäinensetmessageid: <>
2013-03-18 20:34:25Anssi.Kääriäinenlinkissue17468 messages
2013-03-18 20:34:25Anssi.Kääriäinencreate