gh-65961: Raise DeprecationWarning
when __package__
differs from __spec__.parent
#97879
Merged
brettcannon merged 6 commits intopython:mainpython/cpython:mainfrom Oct 5, 2022
brettcannon:deprecate-__package__brettcannon/cpython:deprecate-__package__Copy head branch name to clipboard
Commits
Commits on Oct 5, 2022
gh-65961: Raise `DeprecationWarning` when `__package__` differs from `__spec__.parent`
Show description for fa3ac86committed- authored
- committed
- committed
Update Misc/NEWS.d/next/Core and Builtins/2022-10-05-00-37-27.gh-issue-65961.z0Ys0y.rst
Show description for e4e2f26- committed