gh-70319: Deprecate usage of load_module() by brettcannon · Pull Request #23469 · python/cpython · GitHub

github.com

Tin mới

brettcannon:deprecate-load_module

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

Raise ImportWarning when loader.load_module() is used #70319

bpo-26131: deprecate the use of load_module()

Fix a grammatical error in a comment

Merge branch 'master' into deprecate-load_module

Update to print out the loader's name in the ImportWarning

Merge branch 'master' into deprecate-load_module

Deprecate zipimport's load_module() method

Silence ImportWarning in test_venv

Add a news entry for the zipimport deprecation

Add a What's New entry for zipimport deprecation

Tweak the deprecation message for zipimport

Re-generate zipimport

awaiting core review

awaiting core review

Merge branch 'master' into deprecate-load_module

Implement create_module() and exec_module() for _SixMetaPathImporter benjaminp/six#341

[Forward compatibility][BUG] pkg_resources.extern.VendorImporter lacks exec_module() method pypa/setuptools#2481

[Forward compatibility] Custom module finders must implement an exec_module() method ansible/ansible#72952

ImportWarning: VendorImporter.exec_module() not found; falling back to load_module() pypa/packaging#375

[4.6] Define create_module()/exec_module() in AssertionRewritingHook to avoid ImportWarning pytest-dev/pytest#8236

bpo-26131: Deprecate usage of load_module() (

zipimporter find_module fullname mis-documented #52647

gh-97850: Update the deprecation warning of importlib.abc.Loader.load_module #129855

Remove deprecated importlib.load_module #133882

Remove private stdlib helpers orphaned by past removals #150882

: Remove unused importlib._bootstrap._object_name

gh-150886: Remove unused importlib._bootstrap._object_name #150884

Remove unused private function importlib._bootstrap._object_name #150886

: Remove unused importlib._bootstrap._object_name

: Remove unused importlib._bootstrap._object_name (

: Remove unused importlib._bootstrap._object_name (