mirror of
https://github.com/python/cpython.git
synced 2025-11-15 00:00:00 +00:00
Undo a recommendation as load_module() methods might be called directly
This commit is contained in:
parent
3dc48d6f69
commit
56dfc2127f
1 changed files with 1 additions and 5 deletions
|
|
@ -846,8 +846,6 @@ an :term:`importer`.
|
||||||
.. note::
|
.. note::
|
||||||
As this decorator sets :attr:`__loader__` after loading the module, it is
|
As this decorator sets :attr:`__loader__` after loading the module, it is
|
||||||
recommended to use :func:`module_for_loader` instead when appropriate.
|
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
|
.. versionchanged:: 3.4
|
||||||
Set ``__loader__`` if set to ``None``, as if the attribute does not
|
Set ``__loader__`` if set to ``None``, as if the attribute does not
|
||||||
|
|
@ -860,6 +858,4 @@ an :term:`importer`.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
As this decorator sets :attr:`__package__` after loading the module, it is
|
As this decorator sets :attr:`__package__` after loading the module, it is
|
||||||
recommended to use :func:`module_for_loader` instead when appropriate. As
|
recommended to use :func:`module_for_loader` instead when appropriate.
|
||||||
of Python 3.3 this decorator is also redundant as import will set
|
|
||||||
:attr:`__package__` post-import if necessary.
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue