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-108082: C API: Add tests for PyErr_WriteUnraisable()#111455

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

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedOct 29, 2023
edited by github-actionsbot
Loading

Also document the behavior when called with NULL.
Comment on lines +98 to +99
.. versionchanged:: 3.4
Print a traceback. Print only traceback if *obj* is ``NULL``.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Comment on lines +101 to +102
.. versionchanged:: 3.8
Use :func:`sys.unraisablehook`.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Comment on lines 95 to 96
.. versionchanged:: 3.2
Accept ``NULL`` as argument.
Copy link
MemberAuthor

@serhiy-storchakaserhiy-storchakaOct 29, 2023
edited
Loading

Choose a reason for hiding this comment

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

Actually, it was cosmetic change. It skipped " in <NULL>" if obj is NULL.

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

LGTM. I just made a minor coding style suggestion.

Co-authored-by: Victor Stinner <vstinner@python.org>
@serhiy-storchaka
Copy link
MemberAuthor

Thank you Victor for your review.

@serhiy-storchakaserhiy-storchaka merged commitbca3305 intopython:mainOct 30, 2023
@miss-islington-app
Copy link

Thanks@serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@serhiy-storchakaserhiy-storchaka deleted the test-capi-PyErr_WriteUnraisable branchOctober 30, 2023 17:01
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestOct 30, 2023
…GH-111455)Also document the behavior when called with NULL.(cherry picked from commitbca3305)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

GH-111507 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelOct 30, 2023
serhiy-storchaka added a commit that referenced this pull requestOct 30, 2023
…1455) (GH-111507)Also document the behavior when called with NULL.(cherry picked from commitbca3305)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
FullteaR pushed a commit to FullteaR/cpython that referenced this pull requestNov 3, 2023
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@vstinnervstinnervstinner approved these changes

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip newstestsTests in the Lib/test dir
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@serhiy-storchaka@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp