public void __setslice__(PyObject start, PyObject stop, PyObject step, PyObject value) { if (step != null) { __setitem__(new PySlice(start, stop, step), value); return; } PyType self_type = getType(); PyObject impl = self_type.lookup("__setslice__"); if (impl != null) { PyObject[] indices = PySlice.indices2(this, start, stop); impl.__get__(this, self_type).__call__(indices[0], indices[1], value); return; } super.__setslice__(start, stop, step, value); }