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

C API: Report ignored exception in C API functions which ignore all errors #106672

Closed
Labels
@serhiy-storchaka

Description

@serhiy-storchaka

Some C API functions, likePyDict_GetItem() andPyObject_HasAttr() (seecapi-workgroup/problems#51 for full list), clears all errors which occurred during execution of these functions. The user has no way to distinguish the normal negative result from error.

There is no way to fix such C API. But at least we can make ignoring errors less unnoticeable. The proposed PR adds_PyErr_WriteUnraisableMsg() when an unrelated error is ignored. It is the same way as reporting errors during object destruction.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp