[Python-Dev] reference leaks, del, and annotations (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Apr 1 02:52:23 CEST 2006


Nick Coghlan wrote:

Generators are even more special, in that they only require finalisation in the first place if they're stopped on a yield statement inside a try-finally block.

I find it rather worrying that there could be a few rare cases in which my generators cause memory leaks, through no fault of my own and without my being able to do anything about it.

Will there be a coding practice one can follow to ensure that this doesn't happen?

-- Greg



More information about the Python-Dev mailing list