GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — C API: Report ignored exception in C API functions which ignore all errors · Issue #106672 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
C API: Report ignored exception in C API functions which ignore all errors#106672
Copy link
Labels
topic-C-APItype-featureA feature request or enhancementA feature request or enhancement

Description

@serhiy-storchaka
serhiy-storchaka
opened on Jul 12, 2023
Issue body actions

Some C API functions, like PyDict_GetItem() and PyObject_HasAttr() (see capi-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

  • gh-106672: C API: Report indiscriminately ignored errors #106674

Activity

  1. serhiy-storchaka
    added
    type-featureA feature request or enhancementA feature request or enhancement
    topic-C-API
    on Jul 12, 2023
  2. serhiy-storchaka
    added a commit that references this issue on Jul 12, 2023

    pythongh-106672: C API: Report indiscriminately ignored errors

    e134bad
  3. serhiy-storchaka
    added a commit that references this issue on Nov 7, 2023

    gh-106672: C API: Report indiscriminately ignored errors (GH-106674)

    f55cb44
  4. serhiy-storchaka
    closed this as completedon Nov 7, 2023
  5. hugovk
    added a commit that references this issue on Nov 8, 2023

    pythongh-106672: C API: Report indiscriminately ignored errors (pytho…

    c1001c5
  6. aisk
    added a commit that references this issue on Feb 11, 2024

    pythongh-106672: C API: Report indiscriminately ignored errors (pytho…

    643f0b6
  7. Glyphack
    added a commit that references this issue on Sep 2, 2024

    pythongh-106672: C API: Report indiscriminately ignored errors (pytho…

    42bf264
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

    topic-C-APItype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.