FAQ

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

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 4 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedAug 19, '13 at 4:48p
activeAug 19, '13 at 6:48p
posts4
users4
websitepython.org

People

Translate

site design / logo © 2021 Grokbase