On 5/10/07, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > The PEP for eliminating __del__ seemed straight-forward > at the outset, but the use case you presented doesn't > seem to have a clean substitute (as it requires the object > to be alive to finalize it). Other use cases do have a clean > solution. So, I'll go forward with the PEP but am a bit > disheartened that it is going to have to advise try/finally > or somesuch for the harder cases.
You've probably already seen these, but just in case you haven't, there have been two alternatives to __del__ posted recently to the cookbook: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/519621 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/519610 Of course, they have their own sets of problems, but maybe there's something worthwhile in there for the PEP. STeVe -- I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a tiny blip on the distant coast of sanity. --- Bucky Katt, Get Fuzzy _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com