[Python-checkins] cpython: Undo a recommendation as load_module() methods might be called directly
brett.cannon
python-checkins at python.org
Wed May 29 00:40:40 CEST 2013
http://hg.python.org/cpython/rev/e50571f10755
changeset: 83964:e50571f10755
user: Brett Cannon <brett at python.org>
date: Tue May 28 18:40:31 2013 -0400
summary:
Undo a recommendation as load_module() methods might be called directly
files:
Doc/library/importlib.rst | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -846,8 +846,6 @@
.. 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 @@
.. 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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list