]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14][3.15] gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry...
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2026 20:31:29 +0000 (22:31 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2026 20:31:29 +0000 (20:31 +0000)
commitb3a7758d8a6333501fd60c052a40ae5c958e3d14
treeaa8c2841872666beed910977e4c599e39146d7f6
parent7befb46bb29319418d866d43a0c85b51598709e8
[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)
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