It is intended that any functions that interface directly with Python which have the possibility of a D exception being raised wrap their contents in a call to this function, e.g.:
extern (C) PyObject* some_func(PyObject* self) { return _exception_catcher({ // ... }); }
See Implementation
It is intended that any functions that interface directly with Python which have the possibility of a D exception being raised wrap their contents in a call to this function, e.g.: