New submission from Anssi Kääriäinen: 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 (https://code.djangoproject.com/ticket/19895). ---------- files: test.py messages: 184515 nosy: Anssi.Kääriäinen priority: normal severity: normal status: open title: Generator memory leak type: resource usage versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file29455/test.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17468> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com