[Python-3000] PEP: Eliminate del (original) (raw)
Antoine Pitrou antoine.pitrou at wengo.com
Mon May 7 17:27:41 CEST 2007
- Previous message: [Python-3000] new io (pep 3116)
- Next message: [Python-3000] PEP: Eliminate __del__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
FWIW and in light of the thread on removing del from the language, I just posted Yet Another Recipe for automatic finalization: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/519621
It allows writing a finalizer as a single finalize method, at the cost of explicitly calling an enable_finalizer() method with the list of attributes to keep alive on the "ghost object".
Antoine.
- Previous message: [Python-3000] new io (pep 3116)
- Next message: [Python-3000] PEP: Eliminate __del__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]