[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
- Previous message: [Python-Dev] gmane.comp.python.devel.3000 has disappeared
- Next message: [Python-Dev] reference leaks, __del__, and annotations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] gmane.comp.python.devel.3000 has disappeared
- Next message: [Python-Dev] reference leaks, __del__, and annotations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]