[Python-3000] PEP: Eliminate del (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Mon May 7 03:40:10 CEST 2007
- Previous message: [Python-3000] [Python-Dev] Pre-pre PEP for 'super' keyword
- Next message: [Python-3000] failing tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Giovanni Bajo wrote:
What I really meant was:
_self.wr = weakref.ref(self, ...)
Okay, that looks better. But I'm not sure what will happen if the holder becomes part of a cycle. If the GC picks the holder as the object to clear to break the cycle, then the weakref will be deallocated before the holder, and the callback won't be called. So it doesn't seem to be an improvement over del.
-- Greg
- Previous message: [Python-3000] [Python-Dev] Pre-pre PEP for 'super' keyword
- Next message: [Python-3000] failing tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]