You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to continue normal processing when using errcheck protocol in ctypes #112423
At https://docs.python.org/3/library/ctypes.html#ctypes._FuncPtr.errcheck there isn't explained what to return to continue with normal processing of the foreign function result (parameter(s) flagged as input/output or output parameters are returned instead of the actual ffi result value).
It should be added that returning the arguments parameter, the usual processing continues.
/* If the errcheck function failed, return NULL.
If the errcheck function returned callargs unchanged,
continue normal processing.
If the errcheck function returned something else,
use that as result.
*/
Activity
gh-112423: Clarify how to use `errcheck` for `ctypes` function pointe…
[3.14] gh-112423: Clarify how to use `errcheck` for `ctypes` function…
[3.15] gh-112423: Clarify how to use `errcheck` for `ctypes` function…