8000 Add blurb · python/cpython@9f533cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f533cb

Browse files
committed
Add blurb
1 parent 726f8dd commit 9f533cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
``importlib.resources.files`` now accepts a module as an anchor instead of
2+
only accepting packages. If a module is passed, resources are resolved
3+
adjacent to that module (in the same package or at the package root). The
4+
parameter was renamed from ``package`` to ``anchor`` with a compatibility
5+
shim for those passing by keyword. Additionally, the new ``anchor``
6+
parameter is now optional and will default to the caller's module.

0 commit comments

Comments
 (0)
0