]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Stop claiming that Py_Finalize releases all memory.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 13 Apr 2006 07:28:29 +0000 (07:28 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 13 Apr 2006 07:28:29 +0000 (07:28 +0000)
Fixes part of #1445210.

Doc/api/intro.tex

index d84b654757669ef9320012108fca798cd0069397..739f0c2141986a899961fa5d648d401ec51c011f 100644 (file)
@@ -572,8 +572,11 @@ defined in \file{Modules/getpath.c}).
 Sometimes, it is desirable to ``uninitialize'' Python.  For instance, 
 the application may want to start over (make another call to 
 \cfunction{Py_Initialize()}) or the application is simply done with its 
-use of Python and wants to free all memory allocated by Python.  This
+use of Python and wants to free memory allocated by Python.  This
 can be accomplished by calling \cfunction{Py_Finalize()}.  The function
 \cfunction{Py_IsInitialized()}\ttindex{Py_IsInitialized()} returns
 true if Python is currently in the initialized state.  More
 information about these functions is given in a later chapter.
+Notice that \cfunction{Py_Finalize} does \emph{not} free all memory
+allocated by the Python interpreter, e.g. memory allocated by extension
+modules currently cannot be released.