Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
Closed
Description
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.