[Python-Dev] AtExit Functions

M.-A. Lemburg mal@lemburg.com
Tue, 09 Jul 2002 15:28:52 +0200


While working with mxTextTools 2.1.0b2, Mike Fletcher found that
he gets a fatal error when the interpreter exits.

Some tracing indicates that the cause is the at exit function
of mxTextTools which clears the cache of tag tables used by
the Tagging Engine in mxTextTools.

If these tables include references to (callable) Python instances,
Python can't properly clean them up when decref'ing them at
AtExit time.

Would it be safe to simply move the call_dll_exitfunc()
call just before the "clear threat" code in Py_Finalize() ?

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/