Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GH-97850: Suppress cross-references to removed importlib.util functions #104134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 3, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions 6 Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1683,9 +1683,9 @@ Deprecated
(Contributed by Brett Cannon in :issue:`42135`.)

* The deprecations of :mod:`!imp`, :func:`!importlib.find_loader`,
:func:`importlib.util.set_package_wrapper`,
:func:`importlib.util.set_loader_wrapper`,
:func:`importlib.util.module_for_loader`,
:func:`!importlib.util.set_package_wrapper`,
:func:`!importlib.util.set_loader_wrapper`,
:func:`!importlib.util.module_for_loader`,
:class:`!pkgutil.ImpImporter`, and
:class:`!pkgutil.ImpLoader` have all been updated to list Python 3.12 as the
slated version of removal (they began raising :exc:`DeprecationWarning` in
Expand Down
2 changes: 1 addition & 1 deletion 2 Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ C APIs pending removal are
* :meth:`!importlib.machinery.FrozenLoader.module_repr`
* :meth:`!importlib.machinery.PathFinder.find_module`
* :meth:`!importlib.machinery.WindowsRegistryFinder.find_module`
* :func:`importlib.util.module_for_loader`
* :func:`!importlib.util.module_for_loader`
* :func:`!importlib.util.set_loader_wrapper`
* :func:`!importlib.util.set_package_wrapper`
* :class:`!pkgutil.ImpImporter`
Expand Down
6 changes: 3 additions & 3 deletions 6 Doc/whatsnew/3.4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2097,8 +2097,8 @@ Deprecations in the Python API
:meth:`importlib.abc.SourceLoader.exec_module`) and let the import system
take care of the rest; and
:meth:`!importlib.abc.Loader.module_repr`,
:meth:`importlib.util.module_for_loader`, :meth:`importlib.util.set_loader`,
and :meth:`importlib.util.set_package` are no longer needed because their
:meth:`!importlib.util.module_for_loader`, :meth:`!importlib.util.set_loader`,
and :meth:`!importlib.util.set_package` are no longer needed because their
functions are now handled automatically by the import system.

* The :mod:`!imp` module is pending deprecation. To keep compatibility with
Expand Down Expand Up @@ -2277,7 +2277,7 @@ Changes in the Python API
in a backwards-compatible fashion, use e.g.
``getattr(module, '__loader__', None) is not None``. (:issue:`17115`.)

* :meth:`importlib.util.module_for_loader` now sets ``__loader__`` and
* :meth:`!importlib.util.module_for_loader` now sets ``__loader__`` and
``__package__`` unconditionally to properly support reloading. If this is not
desired then you will need to set these attributes manually. You can use
:func:`importlib.util.module_to_load` for module management.
Expand Down
2 changes: 1 addition & 1 deletion 2 Misc/NEWS.d/3.10.0a5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ Araujo.
.. nonce: HY2beA
.. section: Documentation

Updated importlib.utils.resolve_name() doc to use __spec__.parent instead of
Updated importlib.util.resolve_name() doc to use __spec__.parent instead of
__package__. (Thanks Yair Frid.)

..
Expand Down
4 changes: 2 additions & 2 deletions 4 Misc/NEWS.d/3.12.0a1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2028,8 +2028,8 @@ resources.
.. nonce: NzdREm
.. section: Library

Remove deprecated :func:`importlib.utils.set_loader` and
:func:`importlib.utils.module_for_loader` from :mod:`importlib.utils`.
Remove deprecated :func:`!importlib.util.set_loader` and
:func:`!importlib.util.module_for_loader` from :mod:`importlib.util`.

..

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.