[Python-checkins] python/dist/src/Doc/lib libimp.tex,1.34,1.35

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Wed, 12 Feb 2003 15:02:56 -0800


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

Modified Files:
	libimp.tex 
Log Message:
Cleanup from patch #683257:
 Add missing INCREFs and re-indent returns to be consistent.
 Add \n\ for lines in docstring
 Add a pathetic test
 Add docs


Index: libimp.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libimp.tex,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** libimp.tex	25 Dec 2002 23:13:34 -0000	1.34
--- libimp.tex	12 Feb 2003 23:02:18 -0000	1.35
***************
*** 107,110 ****
--- 107,123 ----
  \end{funcdesc}
  
+ \begin{funcdesc}{acquire_lock}{}
+ Acquires the interpreter's import lock for the current thread.  This lock
+ should be used by import hooks to ensure thread-safety when importing modules.
+ On platforms without threads, this function does nothing.
+ \versionadded{2.3}
+ \end{funcdesc}
+ 
+ \begin{funcdesc}{release_lock}{}
+ Release the interpreter's import lock.
+ On platforms without threads, this function does nothing.
+ \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()}.