summaryrefslogtreecommitdiff
path: root/Doc/lib/libimp.tex
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-11-29 20:47:40 +0000
committerJust van Rossum <just@letterror.com>2002-11-29 20:47:40 +0000
commitdac41879e4261f4b3e5300d99c113ced788e3b11 (patch)
tree716984f965691335e41f3ddc1a0765de799296f6 /Doc/lib/libimp.tex
parent2db29e899f2ddde2bd0e832862a1ad6741a75d39 (diff)
downloadcpython-dac41879e4261f4b3e5300d99c113ced788e3b11.tar.gz
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 150f5b4202..531c47445d 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()}.