%{ // Workaround for undefined SWIGPY_SLICE_ARG with swig 2.0.3 and 2.0.4 // If removed, fails also with swig 3.0, so this has not been fixed ? // Needs to be investigated #include #if PY_VERSION_HEX >= 0x03020000 # define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj)) #else # define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj)) #endif %} @ITK_WRAP_PYTHON_SWIG_EXT@