<p>Hallo,</p><p>I have kind of special question when extening python with C++ implemented modules.</p><p>I try to implement a class, behaving also like an array. And I need to implement slice-getters. I implemented PySequenceMethods.sq_slice to get "simple" slices like:</p><p>   myobj[x:y]</p><p>It works perfectly, without problems. But now I have a problem when need to access the array with "special" slices, like:</p><p>   myobj[x:y:step]</p><p>   myobj[::-1]  # to revert the array</p><p> </p><p>I would like to ask which method must be implemented to get this "special" slice getters. The "simple" slice PySequenceMethods.sq_slice getter accepts only two indexes - from, to, but not a step (which would solve the issue).  </p><p>Thank you very much for your ansver, best regards</p><p>Dan T. </p>