Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-143547: Fix PyErr_FormatUnraisable() fallback#143557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 4 commits intopython:mainfromvstinner:unraisablehook
Jan 9, 2026

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commentedJan 8, 2026
edited by bedevere-appbot
Loading

Hold a strong reference to 'hook' while calling the default unraisable took to log hook failure.

Fix test_sys.UnraisableHookTest: use the right decorator function to disable colors. Previously, tests were always skipped.

Hold a strong reference to 'hook' while calling the defaultunraisable took to log hook failure.Fix test_sys.UnraisableHookTest: use the right decorator function todisable colors. Previously, tests were always skipped.
Copy link
Member

@ZeroIntensityZeroIntensity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This looks user-facing, so I think it would be a good idea to add a news entry, but I'll leave the decision up to you. The rest of the PR looks good to me.

@vstinner
Copy link
MemberAuthor

I think it would be a good idea to add a news entry

Ok, I added a NEWS entry.

@vstinnervstinner merged commit39a2bcf intopython:mainJan 9, 2026
46 checks passed
@vstinnervstinner deleted the unraisablehook branchJanuary 9, 2026 12:16
@miss-islington-app
Copy link

Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry,@vstinner, I could not cleanly backport this to3.14 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 39a2bcf949095bd603f7b73f15b5b478dbb49ba9 3.14

@miss-islington-app
Copy link

Sorry,@vstinner, I could not cleanly backport this to3.13 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 39a2bcf949095bd603f7b73f15b5b478dbb49ba9 3.13

@bedevere-app
Copy link

GH-143603 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelJan 9, 2026
@vstinnervstinner removed the needs backport to 3.13bugs and security fixes labelJan 9, 2026
vstinner added a commit to vstinner/cpython that referenced this pull requestJan 9, 2026
Hold a strong reference to 'hook' while calling the defaultunraisable took to log hook failure.(cherry picked from commit39a2bcf)
vstinner added a commit that referenced this pull requestJan 9, 2026
…43603)gh-143547: Fix PyErr_FormatUnraisable() fallback (#143557)Hold a strong reference to 'hook' while calling the defaultunraisable took to log hook failure.(cherry picked from commit39a2bcf)
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJan 9, 2026
…GH-143557) (pythonGH-143603)pythongh-143547: Fix PyErr_FormatUnraisable() fallback (pythonGH-143557)Hold a strong reference to 'hook' while calling the defaultunraisable took to log hook failure.(cherry picked from commit1d0baf1)Co-authored-by: Victor Stinner <vstinner@python.org>(cherry picked from commit39a2bcf)
vstinner added a commit that referenced this pull requestJan 9, 2026
…H-143603) (#143612)[3.14]gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557) (GH-143603)gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557)Hold a strong reference to 'hook' while calling the defaultunraisable took to log hook failure.(cherry picked from commit1d0baf1)(cherry picked from commit39a2bcf)Co-authored-by: Victor Stinner <vstinner@python.org>
reidenong pushed a commit to reidenong/cpython that referenced this pull requestJan 12, 2026
Hold a strong reference to 'hook' while calling the defaultunraisable took to log hook failure.Fix test_sys.UnraisableHookTest: use the right decorator function todisable colors. Previously, tests were always skipped.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@aiskaiskaisk left review comments

@ZeroIntensityZeroIntensityZeroIntensity approved these changes

Assignees

@vstinnervstinner

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner@aisk@ZeroIntensity

[8]ページ先頭

©2009-2026 Movatter.jp