Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.15] gh-69370: Fix "python -m inspect --details" for unencodable paths (GH-155246) - #156605

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-abf7a18-3.15
Open

[3.15] gh-69370: Fix "python -m inspect --details" for unencodable paths (GH-155246)#156605
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-abf7a18-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

It failed with UnicodeEncodeError if the path of the module contains
characters unencodable in the encoding of sys.stdout, e.g. undecodable
bytes of a file name. Such characters are now escaped with backslashes,
unless stdout uses an error handler which can handle them.
(cherry picked from commit abf7a18)

Co-authored-by: Serhiy Storchaka [email protected]
Co-Authored-By: Claude Opus 5 (1M context) [email protected]

…hs (pythonGH-155246)

It failed with UnicodeEncodeError if the path of the module contains
characters unencodable in the encoding of sys.stdout, e.g. undecodable
bytes of a file name.  Such characters are now escaped with backslashes,
unless stdout uses an error handler which can handle them.
(cherry picked from commit abf7a18)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants