[Python-checkins] python/dist/src/Doc/lib libimp.tex,1.32,1.33

jvr@users.sourceforge.net jvr@users.sourceforge.net
Fri, 29 Nov 2002 12:47:41 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv20813/Doc/lib

Modified Files:
	libimp.tex 
Log Message:
Slightly improved version of patch #642578: "Expose PyImport_FrozenModules
in imp". This adds two functions to the imp module: get_frozenmodules()
and set_frozenmodules().


Index: libimp.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libimp.tex,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** libimp.tex	9 Apr 2002 18:14:59 -0000	1.32
--- libimp.tex	29 Nov 2002 20:47:37 -0000	1.33
***************
*** 107,110 ****
--- 107,125 ----
  \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()}.