You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove more deprecated importlib APIs from Python 3.12 #98040
Issue #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:
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, 2022
changed 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, 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.
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.
Activity
warsaw commentedon Oct 7, 2022
Questions:
importlib.abs.PathEntryFinderhas 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 definefind_spec()in this ABC?[-]Remove find_module() and find_loader() from Python 3.12[/-][+]Remove find_module(), find_loader(), and NullImporter from Python 3.12[/+][-]Remove find_module(), find_loader(), and NullImporter from Python 3.12[/-][+]Remove more deprecated importlib APIs from Python 3.12[/+]warsaw commentedon Oct 9, 2022
pkgutil.ImpImportercannot be removed since pip 22.2.2 still uses it. This is also going to keeppkgutil.ImpLoaderand theimpmodule around. I'm going to pause work on this branch until there's a pip upstream resolution.pythongh-98040: Remove just the `imp` module
hugovk commentedon 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 commentedon Apr 8, 2023
My plan is to complete this work at the 2023 PyCon sprints.
pythongh-98040: Remove just the `imp` module
gh-98040: Move the Single-Phase Init Tests Out of test_imp (gh-102561)
Merge branch 'main' into superopt
gh-98040: Remove just the `imp` module (#98573)
warsaw commentedon Apr 29, 2023
Since the
impmodule 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.gh-98040: Remove find_loader, find_module and other deprecated APIs (#…
21 remaining items
[Test] Do not use importlib find_module API, removed in Python 3.12 (#…
Replace find_module function
Update git submodules
Fix errors with Python 3.12
bump pre-commit version to work with newer versions of python
Fix 3.11.x version in pyproject
Fix 3.11.x version in pyproject (#4870)
Replace TornadoImporter with TornadoFinder
Update TornadoImport for newer Python versions
Update TornadoImport for newer Python versions
Update TornadoImport for newer Python versions
Update TornadoImport for newer Python versions
Update TornadoImport for newer Python versions
Update TornadoImport for newer Python versions
Fix module 'pkgutil' has no attribute '_get_spec'