summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libimp.tex
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-11-29 20:47:40 (GMT)
committerJust van Rossum <just@letterror.com>2002-11-29 20:47:40 (GMT)
commit3eb166b49b2a290441f7597c413082ae45b59bb6 (patch)
tree57706b250bf4df0ae66de107800fea372454f385 /Doc/lib/libimp.tex
parent535ffa26e691676058b8664191d60d526d2d74b8 (diff)
downloadcpython-3eb166b49b2a290441f7597c413082ae45b59bb6.zip
cpython-3eb166b49b2a290441f7597c413082ae45b59bb6.tar.gz
cpython-3eb166b49b2a290441f7597c413082ae45b59bb6.tar.bz2
Slightly improved version of patch #642578: "Expose PyImport_FrozenModules
in imp". This adds two functions to the imp module: get_frozenmodules() and set_frozenmodules().
Diffstat (limited to 'Doc/lib/libimp.tex')
-rw-r--r--Doc/lib/libimp.tex15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/lib/libimp.tex b/Doc/lib/libimp.tex
index 150f5b4..531c474 100644
--- a/Doc/lib/libimp.tex
+++ b/Doc/lib/libimp.tex
@@ -106,6 +106,21 @@ the process of completing its import (and the imports, if any,
triggered by that).
\end{funcdesc}
+\begin{funcdesc}{set_frozenmodules}{seq_of_tuples}
+Set the global list of frozen modules. \var{seq_of_tuples} is a sequence
+of tuples of length 3: (\var{modulename}, \var{codedata}, \var{ispkg})
+\var{modulename} is the name of the frozen module (may contain dots).
+\var{codedata} is a marshalled code object. \var{ispkg} is a boolean
+indicating whether the module is a package.
+\versionadded{2.3}
+\end{funcdesc}
+
+\begin{funcdesc}{get_frozenmodules}{}
+Return the global list of frozen modules as a tuple of tuples. See
+\function{set_frozenmodules()} for a description of its contents.
+\versionadded{2.3}
+\end{funcdesc}
+
The following constants with integer values, defined in this module,
are used to indicate the search result of \function{find_module()}.