Skip to content

Conversation

@smheidrich
Copy link
Contributor

@smheidrich smheidrich commented Aug 7, 2023

Suggestion for how to point out importlib.resources.as_file()'s support for whole directories as resources in its docs.


📚 Documentation preview 📚: https://cpython-previews--107734.org.readthedocs.build/

@smheidrich
Copy link
Contributor Author

Ping @jaraco (as requested here)

@AA-Turner AA-Turner added the needs backport to 3.12 only security fixes label Aug 8, 2023
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@smheidrich
Copy link
Contributor Author

By the way, wouldn't it be appropriate to also mention this new capability of as_file() in the Improved Modules section of 3.12's What's New page? Right now it only has an entry in the full changelog, but there are some entries in Improved Modules that seem less important to mention than this to me (e.g. performance improvements). How are decisions on what does and doesn't go in there made? 🤔

@AA-Turner
Copy link
Member

Yep, we should add an entry to What's New. Are you happy to add it to this PR?

A

@smheidrich
Copy link
Contributor Author

Sure 👍 I added it.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@brettcannon brettcannon removed their request for review August 9, 2023 18:49
@hugovk hugovk enabled auto-merge (squash) September 6, 2023 20:44
@hugovk hugovk merged commit 9f0c0a4 into python:main Sep 6, 2023
@miss-islington
Copy link
Contributor

Thanks @smheidrich for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @smheidrich and @hugovk, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 9f0c0a46f00d687e921990ee83894b2f4ce8a6e7 3.12

hugovk added a commit to hugovk/cpython that referenced this pull request Sep 7, 2023
…hon#107734)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
(cherry picked from commit 9f0c0a4)
hugovk added a commit to hugovk/cpython that referenced this pull request Sep 7, 2023
…hon#107734)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
(cherry picked from commit 9f0c0a4)
@bedevere-bot
Copy link

GH-109058 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Sep 7, 2023
Yhg1s pushed a commit that referenced this pull request Sep 8, 2023
…-107734) (#109058)

gh-107732: Mention dir support in importlib.resources docs (#107734)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
(cherry picked from commit 9f0c0a4)

Co-authored-by: Shahriar Heidrich <smheidrich@weltenfunktion.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants