Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01884d5

Browse files
committed
Deprecate sys.exitfunc in favor of the atexit module.
Per Guido, sys.exitfunc will be kept around for backwards compatability but atexit will become the one preferred way to do it.
1 parent 0ccff07 commit 01884d5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Doc/lib/libsys.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ \section{\module{sys} ---
195195
module. \note{The exit function is not called when the program is
196196
killed by a signal, when a Python fatal internal error is detected,
197197
or when \code{os._exit()} is called.}
198+
\deprecated{2.4}{Use \refmodule{atexit} instead.}
198199
\end{datadesc}
199200

200201
\begin{funcdesc}{getcheckinterval}{}

0 commit comments

Comments
 (0)