opposite of __init__.py

Ian Kelly ian.g.kelly at gmail.com
Mon Aug 19 13:06:49 EDT 2013


Yes, see the atexit module:

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

On Mon, Aug 19, 2013 at 10:48 AM, Tamer Higazi <th982a at 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



More information about the Python-list mailing list