Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,23 @@ Optimizations
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
=======
Expand Down