Yes, see the atexit module:

http://docs.python.org/3/library/atexit.html

On Mon, Aug 19, 2013 at 10:48 AM, Tamer Higazi <th9...@googlemail.com> wrote:
> Hi people!
>
> I have asked myself a question, if there is a opposite of "__init__.py"
> like "__del__.py" ?!
>
> I want, that when the application ends, certain functions are executed.
> I know I could make a constructor and a destructor, but I simply want to
> know if there is a opposite....
>
>
> Thanks
>
>
>
> Tamer
> --
> http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to