We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

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