Doug Hellmann: PyMOTW: atexit

July 8th, 2007 § 0 comments

Doug’s just pub­lished a new PyMOTW, this one I didn’t know about — the “atexit” mod­ule.

The atexit mod­ule defines a sin­gle func­tion to reg­is­ter cleanup func­tions. Func­tions thus reg­is­tered are auto­mat­i­cally exe­cuted upon nor­mal inter­preter termination.

I’m sorta kick­ing myself now for not know­ing that was there. Man.

See Doug’s write up here: Doug Hell­mann: PyMOTW: atexit

(Via Planet Python.)

What's this?

You are currently reading Doug Hellmann: PyMOTW: atexit at jessenoller.com.

meta