Lines Matching refs:slice
83 .def("__getitem__",[](const Sliceable &s, py::slice slice) {
85 if (!slice.compute(s.size, &start, &stop, &step, &slicelength))
197 .def("__getitem__", [](const Sequence &s, py::slice slice) -> Sequence* {
199 if (!slice.compute(s.size(), &start, &stop, &step, &slicelength))
207 .def("__setitem__", [](Sequence &s, py::slice slice, const Sequence &value) {
209 if (!slice.compute(s.size(), &start, &stop, &step, &slicelength))
212 throw std::runtime_error("Left and right hand size of slice assignment have different sizes!");