A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/python/cpython/issues/106672 below:

Report ignored exception in C API functions which ignore all errors · Issue #106672 · python/cpython · GitHub

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4