4 #include <boost/python/errors.hpp>
17 size_t index = (size_t) _index;
19 index = (size_t) (n + _index);
23 ss <<
"Index " << _index <<
" out of range";
24 PyErr_SetString(PyExc_IndexError, ss.str().c_str());
25 boost::python::throw_error_already_set();
Definition: PyHeliosUtils.h:8
static size_t handlePythonIndex(long _index, size_t n)
Translate received index from python, where negative values have a special meaning (i....
Definition: PyHeliosUtils.h:16