summaryrefslogtreecommitdiffstats
path: root/Doc/library/imp.rst
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-19 00:49:55 (GMT)
committerBrett Cannon <brett@python.org>2013-06-19 00:49:55 (GMT)
commit89df7b4e64917b9dba7a50bc4bfe789d6adb56f3 (patch)
treef80ca86e52fd7868e72fb89eb1cc07e7e85ee528 /Doc/library/imp.rst
parent5e946bacefc9df0f81b3bd340efe89649889cc2e (diff)
downloadcpython-89df7b4e64917b9dba7a50bc4bfe789d6adb56f3.zip
cpython-89df7b4e64917b9dba7a50bc4bfe789d6adb56f3.tar.gz
cpython-89df7b4e64917b9dba7a50bc4bfe789d6adb56f3.tar.bz2
Issue #17177: Clarify some deprecations
Diffstat (limited to 'Doc/library/imp.rst')
-rw-r--r--Doc/library/imp.rst14
1 files changed, 11 insertions, 3 deletions
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst
index eae2c70..08e80ab 100644
--- a/Doc/library/imp.rst
+++ b/Doc/library/imp.rst
@@ -103,8 +103,10 @@ This module provides an interface to the mechanisms used to implement the
using a :keyword:`try` ... :keyword:`finally` statement.
.. deprecated:: 3.3
- Unneeded as loaders should be used to load modules and
- :func:`find_module` is deprecated.
+ If previously used in conjunction with :func:`imp.find_module` then
+ call ``load_module()`` on the returned loader. If you wish to load a
+ module from a specific file, then use one of the file-based loaders found
+ in :mod:`importlib.machinery`.
.. function:: new_module(name)
@@ -233,7 +235,7 @@ file paths.
magic number, as returned by :func:`get_magic`.
.. deprecated:: 3.4
- You may use :attr:`sys.implementation.cache_tag` directly starting
+ Use :attr:`sys.implementation.cache_tag` directly starting
in Python 3.3.
@@ -261,6 +263,8 @@ that circular imports work without any deadlocks.
the most part. A global import lock is kept for some critical tasks,
such as initializing the per-module locks.
+.. deprecated:: 3.4
+
.. function:: acquire_lock()
@@ -279,6 +283,8 @@ that circular imports work without any deadlocks.
the most part. A global import lock is kept for some critical tasks,
such as initializing the per-module locks.
+.. deprecated:: 3.4
+
.. function:: release_lock()
@@ -290,6 +296,8 @@ that circular imports work without any deadlocks.
the most part. A global import lock is kept for some critical tasks,
such as initializing the per-module locks.
+.. deprecated:: 3.4
+
The following constants with integer values, defined in this module, are used
to indicate the search result of :func:`find_module`.