[Python-checkins] CVS: python/dist/src/Doc/lib libatexit.tex,1.3,1.4
Skip Montanaro
python-dev@python.org
Wed, 5 Jul 2000 16:11:28 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19385
Modified Files:
libatexit.tex
Log Message:
added warning about incompatibility with other codes' use of sys.exitfunc.
Index: libatexit.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libatexit.tex,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** libatexit.tex 2000/06/30 16:06:19 1.3
--- libatexit.tex 2000/07/05 23:11:26 1.4
***************
*** 21,24 ****
--- 21,32 ----
\withsubitem{(in sys)}{\ttindex{exitfunc}}
+ Note: This module is unlikely to work correctly when used with other code
+ that sets \code{sys.exitfunc}. In particular, other core Python modules are
+ free to use \module{atexit} without the programmer's knowledge. Authors who
+ use \code{sys.exitfunc} should convert their code to use
+ \module{atexit} instead. The simplest way to convert code that sets
+ \code{sys.exitfunc} is to import \module{atexit} and register the function
+ that had been bound to \code{sys.exitfunc}.
+
\begin{funcdesc}{register}{func\optional{, *args\optional{, **kargs}}}
Register \var{func} as a function to be executed at termination. Any