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
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
8 changes: 6 additions & 2 deletions 8 Doc/library/importlib.resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ for example, a package and its resources can be imported from a zip file using

.. versionadded:: 3.9

.. deprecated-removed:: 3.12 3.15
*package* parameter was renamed to *anchor*. *anchor* can now be a
.. versionchanged:: 3.12
*package* parameter was renamed to *anchor*.
*package* was still accepted, but deprecated.

.. versionchanged:: 3.15
*package* parameter was fully removed. *anchor* can now be a
non-package module and if omitted will default to the caller's module.
*package* is no longer accepted since Python 3.15. Consider passing the
anchor positionally or using ``importlib_resources >= 5.10`` for a
Expand Down
8 changes: 8 additions & 0 deletions 8 Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,14 @@ http.server
(Contributed by Bénédikt Tran in :gh:`133810`.)


importlib.resources
-------------------

* Removed deprecated ``package`` parameter
from :func:`importlib.resources.files` function.
(Contributed by Semyon Moroz in :gh:`138044`)


pathlib
-------

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