-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-45514: Deprecate importlib resources legacy functions. #29036
Conversation
…tion docs in importlib_resources docs.
While this PR is ready for review, I want to wait a few days for importlib_resources 5.3 to be in the wild to ensure there aren't any major emergent concerns. |
Misc/NEWS.d/next/Library/2021-10-18-14-25-35.bpo-45514.YmlzIl.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Filipe Laíns <lains@riseup.net>
I've requested a review of this change with Barry and Brett, both of whom have had substantial influence on this interface and both of whom are on the SC. In this discussion, I've made the case that the deprecation is appropriate, but others have made the case that the deprecation happens too quickly, mainly because there won't be one interface that one could depend on across Python 3.13 and 3.8 without adopting a backport. If either agree the deprecation is too aggressive, I'll back it out to a PendingDeprecationWarning and let it linger indefinitely. |
There have been no reported issues after issuing the deprecation warning in importlib_resources 5.3. |
I'd like for this change to be present in early releases of Python 3.11 to limit any surprise and get feedback early. I'd prefer to get a review of this change by next week. Please let me know if you would like more time to consider. If I don't hear anything by 2021-11-20 AOE, I'll plan to merge, but without prejudice; the change can be rolled back or dialed back as needed. |
I don't have time to really weigh in on this, so consider me neutral. |
I've decided to move forward with this change, with my rationale here. |
…29036) * bpo-45514: Apply changes from importlib_resources@a3ef4128c6 * Mark legacy functions as deprecated in the docs and link to the migration docs in importlib_resources docs. * Apply changes from importlib_resources@329ae9d5f2c. * Indicate importlib.resources as a module. Co-authored-by: Filipe Laíns <lains@riseup.net>
Still to do:
https://bugs.python.org/issue45514