gh-121604: Make sure all deprecated items in importlib raise DeprecationWarning by tomasr8 · Pull Request #128007 · python/cpython · GitHub

github.com

Tin mới

tomasr8:importlib-deprecations

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

Make sure all deprecated items in importlib raise DeprecationWarning #121604

Add DeprecationWarning for path_mtime

Add DeprecationWarning for ResourceLoader

Add DeprecationWarning for DEBUG_BYTECODE_SUFFIXES and OPTIMIZED_BYTE…

Add DeprecationWarning for WindowsRegistryFinder

View reviewed changes

Learn more about hiding disruptive comments

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

Update Lib/importlib/abc.py

gh-121604: Raise DeprecationWarnings in importlib #121765

Meta issue for cleaning up import system cruft #97850

View reviewed changes

bedevere-app Bot commented Jan 6, 2025

bedevere-app Bot commented Jan 6, 2025

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core devel

Improve deprecation message

Raise DeprecationWarning in find_spec instead of __init__

Remove extra import

awaiting change review

awaiting change review

View reviewed changes

Merge branch 'main' into importlib-deprecations

Update news entry to be more specific about what's deprecated

View reviewed changes