]> granicus.if.org Git - python/commitdiff
Deprecate sys.exitfunc in favor of the atexit module.
authorRaymond Hettinger <python@rcn.com>
Wed, 18 Aug 2004 02:50:00 +0000 (02:50 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 18 Aug 2004 02:50:00 +0000 (02:50 +0000)
Per Guido, sys.exitfunc will be kept around for backwards compatability
but atexit will become the one preferred way to do it.

Doc/lib/libsys.tex

index 2cac03e98ae16458cba5480eb5210fcc662bbed5..a3971b67399a563f84a782b297de9c664dc08bf1 100644 (file)
@@ -195,6 +195,7 @@ It is always available.
   module.  \note{The exit function is not called when the program is
   killed by a signal, when a Python fatal internal error is detected,
   or when \code{os._exit()} is called.}
+  \deprecated{2.4}{Use \refmodule{atexit} instead.}
 \end{datadesc}
 
 \begin{funcdesc}{getcheckinterval}{}