GeezerVison is showing github.com — Remove more deprecated importlib APIs from Python 3.12 · Issue #98040 · python/cpython
Remove more deprecated importlib APIs from Python 3.12 #98040DescriptionIssue #97850 is the meta issue tracking removals of long deprecated functions from importlib. This ticket tracks just the removals of the following previously deprecated APIs:
-
find_loader()
-
find_module()
-
imp module
-
importlib.abc.Finder
-
pkgutil.ImpImporter
-
pkgutil.ImpLoader
Linked PRs
Activitywarsaw commented on Oct 7, 2022 Questions:
importlib.abs.PathEntryFinder has this comment: "We don't define find_spec() here since that would break hasattr checks we do to support backward compatibility." Do we need to define find_spec() in this ABC?
changed the title [-]Remove find_module() and find_loader() from Python 3.12[/-] [+]Remove find_module(), find_loader(), and NullImporter from Python 3.12[/+] on Oct 7, 2022changed the title [-]Remove find_module(), find_loader(), and NullImporter from Python 3.12[/-] [+]Remove more deprecated importlib APIs from Python 3.12[/+] on Oct 7, 2022warsaw commented on Oct 9, 2022 pkgutil.ImpImporter cannot be removed since pip 22.2.2 still uses it. This is also going to keep pkgutil.ImpLoader and the imp module around. I'm going to pause work on this branch until there's a pip upstream resolution.
hugovk commented on Apr 8, 2023 Little reminder: we're a month away from the beta freeze to remove these, or to bump removal to 3.13. warsaw commented on Apr 8, 2023 My plan is to complete this work at the 2023 PyCon sprints. Reacted by Hugo van Kemenade, Eric Snow and Brett Cannon warsaw commented on Apr 29, 2023 Since the imp module was finally removed, I'm going to close this issue. Please refer back to the #97850 as the meta issue for cleaning up the import system cruft. added a commit that references this issue on May 3, 2023gh-98040: Remove find_loader, find_module and other deprecated APIs (#…
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|