mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Mention in "What's New" that the import system is starting to be cleaned up (GH-22931)
Automerge-Triggered-By: GH:brettcannon
This commit is contained in:
parent
976da903a7
commit
04523c5bd6
1 changed files with 17 additions and 0 deletions
|
@ -267,6 +267,23 @@ Optimizations
|
||||||
Deprecated
|
Deprecated
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
* Starting in this release, there will be a concerted effort to begin
|
||||||
|
cleaning up old import semantics that were kept for Python 2.7
|
||||||
|
compatibility. Specifically,
|
||||||
|
:meth:`~importlib.abc.PathEntryFinder.find_loader`/:meth:`~importlib.abc.Finder.find_module`
|
||||||
|
(superseded by :meth:`~importlib.abc.Finder.find_spec`),
|
||||||
|
:meth:`~importlib.abc.Loader.load_module`
|
||||||
|
(superseded by :meth:`~importlib.abc.Loader.exec_module`),
|
||||||
|
:meth:`~importlib.abc.Loader.module_repr` (which the import system
|
||||||
|
takes care of for you), the ``__package__`` attribute
|
||||||
|
(superseded by ``__spec__.parent``), the ``__loader__`` attribute
|
||||||
|
(superseded by ``__spec__.loader``), and the ``__cached__`` attribute
|
||||||
|
(superseded by ``__spec__.cached``) will slowly be removed (as well
|
||||||
|
as other classes and methods in :mod:`importlib`).
|
||||||
|
:exc:`ImportWarning` and/or :exc:`DeprecationWarning` will be raised
|
||||||
|
as appropriate to help identify code which needs updating during
|
||||||
|
this transition.
|
||||||
|
|
||||||
|
|
||||||
Removed
|
Removed
|
||||||
=======
|
=======
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue