diff options
author | Brett Cannon <brett@python.org> | 2012-05-13 17:04:21 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-05-13 17:04:21 (GMT) |
commit | 62961dde319ea4c1ba6db18cc549a851515c9e29 (patch) | |
tree | 6de49399a1d14410e7be3039f2024df3e7f76ccc /Doc/library/imp.rst | |
parent | 401f9f3d32dcebf5ead8079d46a83fe7c7631581 (diff) | |
download | cpython-62961dde319ea4c1ba6db18cc549a851515c9e29.zip cpython-62961dde319ea4c1ba6db18cc549a851515c9e29.tar.gz cpython-62961dde319ea4c1ba6db18cc549a851515c9e29.tar.bz2 |
Issue #13959: Document imp.find_module/load_module as deprecated.
The code itself does not raise a DeprecationWarning as the functions
are technically fine, it's just a bad API. Unfortunately experience
has shown that the terrible API has been exposed in various places,
necessitating that it stick around probably until py4k comes around
since it is such a shift to move over to importlib.find_loader().
Diffstat (limited to 'Doc/library/imp.rst')
-rw-r--r-- | Doc/library/imp.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst index 7e5f8dc..d54bd9d 100644 --- a/Doc/library/imp.rst +++ b/Doc/library/imp.rst @@ -72,6 +72,9 @@ This module provides an interface to the mechanisms used to implement the then use :func:`find_module` with the *path* argument set to ``P.__path__``. When *P* itself has a dotted name, apply this recipe recursively. + .. deprecated:: 3.3 + Use :func:`importlib.find_loader` instead. + .. function:: load_module(name, file, pathname, description) @@ -93,6 +96,10 @@ This module provides an interface to the mechanisms used to implement the it was not ``None``, even when an exception is raised. This is best done 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. + .. function:: new_module(name) |