]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure...
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2026 16:43:38 +0000 (18:43 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2026 16:43:38 +0000 (18:43 +0200)
commit7b6e98911e1485be13817f2aedbbfadb1c4ea876
tree2843b2c43ef03bd8cbc9e387168930a8214472b1
parent9fd1a125bc0ebdc26eae684da6e48ef24ee23b34
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.
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