]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failu...
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2026 21:24:46 +0000 (23:24 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2026 21:24:46 +0000 (23:24 +0200)
commitdb9e7556c32b0d58763b086997baa8b738854a43
tree64f2e99f068fcbd5e636ca4bd37522e1b4e030b5
parentfd0839de337e2e46a18f3b297912203a367f3911
[3.13] gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (#151250) (#151269) (#151283) (#151287)

[3.14][3.15] gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (#151250) (#151269) (#151283)

[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)
(cherry picked from commit 10f616cf3939f87605081d05c1913ba630046c54)
(cherry picked from commit b3a7758d8a6333501fd60c052a40ae5c958e3d14)
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