-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Make sure all deprecated items in importlib raise DeprecationWarning
#121604
Comments
DeprecationWarning
I will try this one at europython :) |
To add deprecation warnings to module-level constants like Lines 44 to 54 in 4e36dd7
|
@tomasr8 thanks, I've been looking at this exact file as a reference! Can you confirm which of the tasks are already done? For example in _abc.py, in the load_module() function I can already see a "# Warning implemented in _load_module_shim()." message. |
Hi @brettcannon, I'm sitting at Europython sprints and working with @rashansmith. If you know if any of these have already been done, please let us know. Going to check the history :D |
GH-121765 is a backport of this pull request to the 3.14 branch. |
@brettcannon @willingc @tomasr8 I've created a PR for this issue. Please let me know if it looks good or any issues I should resolve. It is based on validating which deprecationwarnings have already been implemented from the list, and therefore working on the remainders:
|
@willingc @rashansmith I made the list from the docs based on a comment on another issue that made it sound like |
Do we have it documented somewhere that |
I don't think it is. At least there are no deprecation warnings in the code, just for |
That's what I thought, but I was thinking maybe I missed something given the warnings that the linked MR is adding. I'll bring the conversation over there. |
…ionWarning (#128007) Co-authored-by: rashansmith <smith.rashan@gmail.com> Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Brett Cannon <brett@python.org>
importlib.abc.Loader
importlib.abc.InspectLoader.load_module()
importlib.abc.FileLoader.load_module()
importlib.abc.SourceLoader.load_module()
importlib.machinery.SourceFileLoader.load_module()
imortlib.machinery.SourcelessFileLoader.load_module()
importlib.abc.ResourceLoader
importlib.abc.SourceLoader.path_mtime()
importlib.machinery.DEBUG_BYTECODE_SUFFIXES
importlib.machinery.OPTIMIZED_BYTECODE_SUFFIXES
debug_override
parameter ofimportlib.util.cache_from_source()
Linked PRs
The text was updated successfully, but these errors were encountered: