diff options
| author | Georg Brandl <georg@python.org> | 2008-02-01 11:56:49 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-02-01 11:56:49 +0000 |
| commit | f69451833191454bfef75804c2654dc37e8f3e93 (patch) | |
| tree | 7e81560f5276c35f68b7b02e75feb9221a82ae5d /Doc/library/imp.rst | |
| parent | f25ef50549d9f2bcb6294fe61a9902490728edcc (diff) | |
| download | cpython-git-f69451833191454bfef75804c2654dc37e8f3e93.tar.gz | |
Update docs w.r.t. PEP 3100 changes -- patch for GHOP by Dan Finnie.
Diffstat (limited to 'Doc/library/imp.rst')
| -rw-r--r-- | Doc/library/imp.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst index 831d1a7d24..ac1b14bd44 100644 --- a/Doc/library/imp.rst +++ b/Doc/library/imp.rst @@ -185,6 +185,19 @@ This module provides an interface to the mechanisms used to implement the continue to use the old class definition. The same is true for derived classes. +.. function:: 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. + + +.. function:: release_lock() + + Release the interpreter's import lock. On platforms without threads, this + function does nothing. + + The following constants with integer values, defined in this module, are used to indicate the search result of :func:`find_module`. |
