[Python-checkins] r62996 - python/trunk/Doc/library/imp.rst
andrew.kuchling
python-checkins at python.org
Sat May 10 19:48:45 CEST 2008
Author: andrew.kuchling
Date: Sat May 10 19:48:45 2008
New Revision: 62996
Log:
#1625509: describe behaviour of import lock
Modified:
python/trunk/Doc/library/imp.rst
Modified: python/trunk/Doc/library/imp.rst
==============================================================================
--- python/trunk/Doc/library/imp.rst (original)
+++ python/trunk/Doc/library/imp.rst Sat May 10 19:48:45 2008
@@ -114,10 +114,16 @@
.. function:: acquire_lock()
- Acquires the interpreter's import lock for the current thread. This lock should
+ Acquire 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.
+ Once a thread has acquired the import lock, the same thread may acquire it
+ again without blocking; the thread must release it once for each time it has
+ acquired it.
+
+ On platforms without threads, this function does nothing.
+
.. versionadded:: 2.3
More information about the Python-checkins
mailing list