Class count

    • Constructor Detail

      • count

        public count​(PyType subType)
      • count

        public count()
        Creates an iterator that returns consecutive numbers starting at 0.
      • count

        public count​(PyObject start)
        Creates an iterator that returns consecutive numbers starting at start.
      • count

        public count​(PyObject start,
                     PyObject step)
        Creates an iterator that returns consecutive numbers starting at start with step step.
    • Method Detail

      • count___copy__

        public PyObject count___copy__()
      • __repr__

        public PyString __repr__()
        Description copied from class: PyObject
        Equivalent to the standard Python __repr__ method. This method should not typically need to be overrriden. The easiest way to configure the string representation of a PyObject is to override the standard Java toString method.
        Overrides:
        __repr__ in class PyObject
      • __iternext__

        public PyObject __iternext__()
        Description copied from class: PyObject
        Return the next element of the sequence that this is an iterator for. Returns null when the end of the sequence is reached.
        Specified by:
        __iternext__ in class PyIterator
      • next

        public PyObject next()
        Description copied from class: PyIterator
        The exposed next method. Note that exposed derivable subclasses of PyIterator should override next to call doNext(custom___iternext__), as __iternext__ is overridden by the Derived classes.
        Overrides:
        next in class PyIterator
        Returns:
        a PyObject result