From capi-workgroup/problems#51
Functions must not suppress unknown exceptions, except ones that specifically to do just that (like PyErr_Clear).
(#13 is related: If a function has a common “failure”, like “attribute not found” from a getattr, that can be treated as success instead, and be signaled with a dedicated return value. This avoids creating an exception object.)
From capi-workgroup/problems#51
Functions must not suppress unknown exceptions, except ones that specifically to do just that (like
PyErr_Clear).(#13 is related: If a function has a common “failure”, like “attribute not found” from a getattr, that can be treated as success instead, and be signaled with a dedicated return value. This avoids creating an exception object.)