cpython: ded443c603f0 (original) (raw)
Mercurial > cpython
changeset 84215:ded443c603f0
Issue #17177: Clarify some deprecations [#17177]
Brett Cannon brett@python.org | |
---|---|
date | Tue, 18 Jun 2013 20:49:55 -0400 |
parents | 626a8e49f2a9 |
children | 338be75f11c1 |
files | Doc/library/imp.rst |
diffstat | 1 files changed, 11 insertions(+), 3 deletions(-)[+] [-] Doc/library/imp.rst 14 |
line wrap: on
line diff
--- a/Doc/library/imp.rst
+++ b/Doc/library/imp.rst
@@ -103,8 +103,10 @@ This module provides an interface to the
using a :keyword:try
... :keyword:finally
statement.
.. deprecated:: 3.3
Unneeded as loaders should be used to load modules and[](#l1.7)
:func:`find_module` is deprecated.[](#l1.8)
If previously used in conjunction with :func:`imp.find_module` then[](#l1.9)
call ``load_module()`` on the returned loader. If you wish to load a[](#l1.10)
module from a specific file, then use one of the file-based loaders found[](#l1.11)
in :mod:`importlib.machinery`.[](#l1.12)
.. 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[](#l1.20)
Use :attr:`sys.implementation.cache_tag` directly starting[](#l1.21) in Python 3.3.[](#l1.22)
@@ -261,6 +263,8 @@ that circular imports work without any d
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 d
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 d
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
.