Commit f51170c5 authored by Brett Cannon's avatar Brett Cannon

Issue #17177: Clarify some deprecations

parent ce1dceb4
...@@ -103,8 +103,10 @@ This module provides an interface to the mechanisms used to implement the ...@@ -103,8 +103,10 @@ This module provides an interface to the mechanisms used to implement the
using a :keyword:`try` ... :keyword:`finally` statement. using a :keyword:`try` ... :keyword:`finally` statement.
.. deprecated:: 3.3 .. deprecated:: 3.3
Unneeded as loaders should be used to load modules and If previously used in conjunction with :func:`imp.find_module` then
:func:`find_module` is deprecated. 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) .. function:: new_module(name)
...@@ -233,7 +235,7 @@ file paths. ...@@ -233,7 +235,7 @@ file paths.
magic number, as returned by :func:`get_magic`. magic number, as returned by :func:`get_magic`.
.. deprecated:: 3.4 .. 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. in Python 3.3.
...@@ -261,6 +263,8 @@ that circular imports work without any deadlocks. ...@@ -261,6 +263,8 @@ that circular imports work without any deadlocks.
the most part. A global import lock is kept for some critical tasks, the most part. A global import lock is kept for some critical tasks,
such as initializing the per-module locks. such as initializing the per-module locks.
.. deprecated:: 3.4
.. function:: acquire_lock() .. function:: acquire_lock()
...@@ -279,6 +283,8 @@ that circular imports work without any deadlocks. ...@@ -279,6 +283,8 @@ that circular imports work without any deadlocks.
the most part. A global import lock is kept for some critical tasks, the most part. A global import lock is kept for some critical tasks,
such as initializing the per-module locks. such as initializing the per-module locks.
.. deprecated:: 3.4
.. function:: release_lock() .. function:: release_lock()
...@@ -290,6 +296,8 @@ that circular imports work without any deadlocks. ...@@ -290,6 +296,8 @@ that circular imports work without any deadlocks.
the most part. A global import lock is kept for some critical tasks, the most part. A global import lock is kept for some critical tasks,
such as initializing the per-module locks. such as initializing the per-module locks.
.. deprecated:: 3.4
The following constants with integer values, defined in this module, are used The following constants with integer values, defined in this module, are used
to indicate the search result of :func:`find_module`. to indicate the search result of :func:`find_module`.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment