summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-05-28 22:40:31 (GMT)
committerBrett Cannon <brett@python.org>2013-05-28 22:40:31 (GMT)
commit56dfc2127f6b835d056d025a978f1be2bbb5d431 (patch)
tree68406b5f48972aad716279c7faabc43ddd33d0d5 /Doc
parent3dc48d6f6937f110388efd0f257fa12c323763a6 (diff)
downloadcpython-56dfc2127f6b835d056d025a978f1be2bbb5d431.zip
cpython-56dfc2127f6b835d056d025a978f1be2bbb5d431.tar.gz
cpython-56dfc2127f6b835d056d025a978f1be2bbb5d431.tar.bz2
Undo a recommendation as load_module() methods might be called directly
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/importlib.rst6
1 files changed, 1 insertions, 5 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index e0d1a29..137721e 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -846,8 +846,6 @@ an :term:`importer`.
.. note::
As this decorator sets :attr:`__loader__` after loading the module, it is
recommended to use :func:`module_for_loader` instead when appropriate.
- This decorator is also redundant as of Python 3.3 as import itself will
- set these attributes post-import if necessary.
.. versionchanged:: 3.4
Set ``__loader__`` if set to ``None``, as if the attribute does not
@@ -860,6 +858,4 @@ an :term:`importer`.
.. note::
As this decorator sets :attr:`__package__` after loading the module, it is
- recommended to use :func:`module_for_loader` instead when appropriate. As
- of Python 3.3 this decorator is also redundant as import will set
- :attr:`__package__` post-import if necessary.
+ recommended to use :func:`module_for_loader` instead when appropriate.