Skip to content

Replace PyErr_WriteUnraisable() with PyErr_FormatUnraisable() #129354

Description

@vstinner

Activity

  1. added a commit that references this issue on Jan 27, 2025
  2. vstinner commented on Jan 27, 2025

    @vstinner
    MemberAuthor

    I wrote a single big PR to show how the code can look like: PR gh-129359.

    I propose to use replace PyErr_WriteUnraisable() with PyErr_FormatUnraisable() to log better (more helpful) error messages.

    The drawback is that it changes sys.unraisablehook arguments: the object is no longer set. In my PR, I had to update multiple tests to check err_msg (string) instead.

  3. vstinner commented on Jan 27, 2025

    @vstinner
    MemberAuthor
  4. added 10 commits that reference this issue on Jan 29, 2025
  5. 18 remaining items

  6. added a commit that references this issue on Feb 5, 2025
  7. added 9 commits that reference this issue on Feb 7, 2025
  8. added 3 commits that reference this issue on Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions