Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52703

Re: opposite of __init__.py

From Dave Angel <davea@davea.name>
Subject Re: opposite of __init__.py
Date 2013-08-19 18:48 +0000
References <52124C53.1040401@googlemail.com>
Newsgroups comp.lang.python
Message-ID <mailman.39.1376938143.19984.python-list@python.org> (permalink)

Show all headers | View raw


Tamer Higazi wrote:

> Hi people!
>
> I have asked myself a question, if there is a opposite of "__init__.py"
> like "__del__.py" ?!

Others have answered your question, but I wanted to correct a
misunderstanding:

>
> I want, that when the application ends, certain functions are executed.
> I know I could make a constructor and a destructor,

Not sure what you're talkiing about, but you cannot be sure that an
object's destructor ( __del__() ) will ever be called.  If you want to
make sure that a particular object gets processed, one approach is the
with- syntax.


> but I simply want to
> know if there is a opposite....
>



-- 
DaveA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: opposite of __init__.py Dave Angel <davea@davea.name> - 2013-08-19 18:48 +0000

csiph-web