A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-July/026524.html below:

[Python-Dev] AtExit Functions

[Python-Dev] AtExit Functions [Python-Dev] AtExit FunctionsSkip Montanaro skip@pobox.com
Mon, 15 Jul 2002 07:43:37 -0500
    mal> I suppose the first one is what the atexit module exposes in Python
    mal> 2.0+, right ?

Not really.  The atexit module is just a wrapper around sys.exitfunc which
provides a standard protocol for registering more than one function to be
called at exit.  You should be able to easily backport it to 1.5.2 and
deliver it with your package for installation on systems still running
1.5.2.  Or, just deal directly with sys.exitfunc.  Before 2.0 there was no
rational way to use sys.exitfunc.  The application, libraries, and core code
had no rules about who could or couldn't set sys.exitfunc.

Skip




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4