summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-04-13 07:28:29 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-04-13 07:28:29 (GMT)
commitbb3001188093076dedb370b7ad6d82c4360f5fc8 (patch)
tree70f5a9219375fc3d5d131342b65f7c7cf48b815b
parentf15da6995b974238bc4af10bc260e4c209c13a1f (diff)
downloadcpython-bb3001188093076dedb370b7ad6d82c4360f5fc8.zip
cpython-bb3001188093076dedb370b7ad6d82c4360f5fc8.tar.gz
cpython-bb3001188093076dedb370b7ad6d82c4360f5fc8.tar.bz2
Stop claiming that Py_Finalize releases all memory.
Fixes part of #1445210.
-rw-r--r--Doc/api/intro.tex5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/api/intro.tex b/Doc/api/intro.tex
index d84b654..739f0c2 100644
--- a/Doc/api/intro.tex
+++ b/Doc/api/intro.tex
@@ -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.