STINNER Victor added the comment: I found this issue while working the memory limit feature of tracemalloc module (issue #19817). I opened #19835 to workaround an unlimited loop on PyErr_NoMemory() when Python is out of memory.
See also the issue #17807 and the PEP 442 for a similar reference cycle with generators. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19880> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com