diff options
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 831d1a7..ac1b14b 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`. |