[Python-3000] PEP: Eliminate del (original) (raw)
Giovanni Bajo rasky at develer.com
Sat May 5 13:21:59 CEST 2007
- Previous message: [Python-3000] PEP: Eliminate __del__
- Next message: [Python-3000] PEP: Eliminate __del__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 04/05/2007 20.35, Adam Olsen wrote:
Any attempt that keeps the entire contents of dict alive is doomed. It's likely to contain a cycle back to the original object, and avoiding that is the whole point of jumping through these hoops.
Uh? If dict contains a cycle back to the original object, then the object is part of a cycle already, with or without getting an additional reference to the dict within the finalization callback.
And if there's no cycle, you're not creating one by just referencing dict.
Giovanni Bajo
- Previous message: [Python-3000] PEP: Eliminate __del__
- Next message: [Python-3000] PEP: Eliminate __del__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]