gh-65961: Raise `DeprecationWarning` when `__package__` differs from `__spec__.parent` by brettcannon · Pull Request #97879 · python/cpython

@brettcannon

… from `__spec__.parent`

Also remove `importlib.util.set_package()` which was already slated for removal.

@brettcannon

@brettcannon

@brettcannon

ericsnowcurrently

warsaw

…e-65961.z0Ys0y.rst

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>

@brettcannon

carljm added a commit to carljm/cpython that referenced this pull request

Oct 6, 2022

carljm added a commit to carljm/cpython that referenced this pull request

Oct 8, 2022

mpage pushed a commit to mpage/cpython that referenced this pull request

Oct 11, 2022
… from `__spec__.parent` (python#97879)

Also remove `importlib.util.set_package()` which was already slated for removal.

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>