◐ Shell
clean mode source ↗

gh-122255: Synchronize warnings in C and Python implementations of the warnings module by serhiy-storchaka · Pull Request #122824 · python/cpython

… of the warnings module

In the linecache module and in the Python implementation of the
warnings module, a DeprecationWarning is issued when
m.__loader__ differs from m.__spec__.loader (like in the C
implementation of the warnings module).

vstinner

vstinner

Co-authored-by: Victor Stinner <vstinner@python.org>

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

Dec 6, 2025
… of the warnings module (pythonGH-122824)

In the linecache module and in the Python implementation of the
warnings module, a DeprecationWarning is issued when
m.__loader__ differs from m.__spec__.loader (like in the C
implementation of the warnings module).

pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request

Jun 18, 2026