Documentation of 'org.python.core.PySlice' Java class
PySlice
org.python.core

Class PySlice

    • Method Detail

      • __eq__

        public PyObject __eq__(PyObject o)
        Description copied from class: PyObject
        Equivalent to the standard Python __eq__ method.
        Overrides:
        __eq__ in class PyObject
        Parameters:
        o - the object to compare this with.
        Returns:
        the result of the comparison.
      • __ne__

        public PyObject __ne__(PyObject o)
        Description copied from class: PyObject
        Equivalent to the standard Python __ne__ method.
        Overrides:
        __ne__ in class PyObject
        Parameters:
        o - the object to compare this with.
        Returns:
        the result of the comparison.
      • indicesEx

        public int[] indicesEx(int length)
        Calculates the actual indices of a slice with this slice's start, stop, step and slicelength values for a sequence of length len.
        Returns:
        an array with the start at index 0, stop at index 1, step at index 2 and slicelength at index 3
      • indices2

        public static PyObject[] indices2(PyObject obj,
                                          PyObject start,
                                          PyObject stop)
        Calculate indices for the deprecated __get/set/delslice__ methods.
        Parameters:
        obj - the object being sliced
        start - the slice operation's start
        stop - the slice operation's stop
        Returns:
        an array with start at index 0 and stop at index 1
      • calculateSliceIndex

        public static int calculateSliceIndex(PyObject v)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class PyObject
      • getStart

        public final PyObject getStart()
      • getStop

        public final PyObject getStop()
      • getStep

        public final PyObject getStep()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.