On Tue, Jun 30, 2009 at 3:00 AM, durumdara<[email protected]> wrote: > If I wrote a wrapped object that have __del__ and I logged it to a > file, I saw that if some unhandled exception happened, the __del__ is > not executed. The __del__ executed only after fully working > requests...
You generally want to stay away from .__del__. .__del__ is called when the object is finally discarded, which may be some time later than you expect. Also, exceptions ocurring in .__del__ are ignored, with a message on stderr. -- Mike Orr <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
