gh-98040: Remove find_loader, find_module and other deprecated APIs by warsaw · Pull Request #98059 · python/cpython · GitHub

github.com

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Tin mới

warsaw:find_loader

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Remove more deprecated importlib APIs from Python 3.12 #98040

awaiting core review

awaiting core review

Remove deprecated classes from pkgutil

Remove more obsolete tests

Remove some other PEP 302 obsolescence

Use find_spec instead of load_module

Remove more tests of PEP 302 obsolete APIs

Remove another bunch of tests using obsolete load_modules()

Merge branch 'main' into find_loader

Remove deleted names from __all__

Merge branch 'main' into find_loader

Remove obsolete footnote

Remove imp from generated stdlib names

What's new and blurb

More cleanup However! pip 22.2.2 still relies on pkgutil.ImpImporter so these things cannot be removed until this issue is resolved: https://github.com/pypa/pip/issues/11501

Merge branch 'main' into find_loader

Merge branch 'main' into find_loader

Merge branch 'main' into find_loader

Merge branch 'main' into find_loader

Merge branch 'main' into find_loader

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Merge branch 'main' into find_loader

Merge branch 'main' into find_loader

Suppress cross-references to find_loader and find_module

Suppress cross-references to Finder

Suppress cross-references to pkgutil.ImpImporter and pkgutil.ImpLoader

Merge branch 'main' into find_loader

View reviewed changes

gh-104146: Remove unused 'second_pass_replacements' from clinic.py #104147