]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failu...
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2026 20:03:27 +0000 (22:03 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2026 20:03:27 +0000 (22:03 +0200)
commit10f616cf3939f87605081d05c1913ba630046c54
treec44758e5effe38f3c774f77622b463df0db630e3
parent040cee94aa356a128ceca4967f16e570fbed3c14
[3.15] gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (#151250) (#151269)

gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (#151250)

If "import encodings" fails at Python startup, dump the Python path
configuration to help users debugging their configuration. The
encodings module is the first module imported during Python startup.

(cherry picked from commit 7b6e98911e1485be13817f2aedbbfadb1c4ea876)
Lib/test/test_cmd_line.py
Misc/NEWS.d/next/Core_and_Builtins/2026-06-10-15-42-46.gh-issue-151253.7MMQ8P.rst [new file with mode: 0644]
Python/codecs.c