This is an old copy of the Python FAQ. The information here may be outdated.

Is there an equivalent to C's onexit() in Python?

The atexit module provides a register function that is similar to C’s onexit.

CATEGORY: library

 

A Django site. rendered by a django application. hosted by webfaction.