gopy/_examples/pyerrors
Justin Israel 84915debe0 bind: WIP add checks for exception being set in wrapped python functions
This commit starts to address the issue of a non-NULL PyObject* being returned when an exception has been set by the wrapped C function. Adds a checking mechanism for PyErr_Occurred. Results in exceptions being propagated to python caller, but may introduce memory leaks for retval not being cleaned up during error.

Refs go-python/gopy #254
2021-04-05 07:55:27 +12:00
..
pyerrors.go bind: WIP add checks for exception being set in wrapped python functions 2021-04-05 07:55:27 +12:00
test.py bind: WIP add checks for exception being set in wrapped python functions 2021-04-05 07:55:27 +12:00