summaryrefslogtreecommitdiffstats
path: root/Lib/atexit.py
Commit message (Collapse)AuthorAgeFilesLines
* The atexit module effectively turned itself off if sys.exitfunc alreadyTim Peters2002-07-161-9/+5
| | | | | | | | | | | existed at the time atexit first got imported. That's a bug, and this fixes it. Also reworked test_atexit.py to test for this too, and to stop using an "expected output" file, and to test what actually happens at exit instead of just simulating what it thinks atexit will do at exit. Bugfix candidate, but it's messy so I'll backport to 2.2 myself.
* Bug #128475: mimetools.encode (sometimes) fails when called from a thread.Tim Peters2001-01-211-2/+1
| | | | | | | | pythonrun.c: In Py_Finalize, don't reset the initialized flag until after the exit funcs have run. atexit.py: in _run_exitfuncs, mutate the list of pending calls in a threadsafe way. This wasn't a contributor to bug 128475, it just burned my eyeballs when looking at that bug.
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+2
| | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
* Whitespace standardization.Tim Peters2001-01-141-3/+2
|
* Added the atexit module and documentation from Skip MontanaroFred Drake2000-06-281-0/+54
<skip@mojam.com>. Revisions to the markup to make it pass LaTeX, added an index entry and a reference from the sys.exitfunc documentation. This closes SourceForge patch #100620.