GH-65961: Stop setting or using `__package__` on modules by brettcannon · Pull Request #142046 · python/cpython · GitHub

github.com

Tin mới

brettcannon:remove-__package__

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

update the import machinery to only use __spec__ #65961

Fix test_importlib

Merge branch 'main' of github.com:python/cpython into remove-__package__

Fix test_cmd_line_script

Merge branch 'main' into remove-__package__

Merge branch 'remove-__package__' of github.com:brettcannon/cpython i…

GH-65961: Stop setting __package__ on modules #142055

https://github.com/pypa/pip/blob/36987b0c31b97ffb9fb7949ded628e9a6b10c016/src/pip/__main__.py#L13

Yet again this project gets postponed, this time thanks to pip: https://github.com/pypa/pip/blob/36987b0c31b97ffb9fb7949ded628e9a6b10c016/src/pip/__main__.py#L13

⌂git
1/1