Class repeat

    • Constructor Detail

      • repeat

        public repeat()
      • repeat

        public repeat​(PyType subType)
      • repeat

        public repeat​(PyObject object)
      • repeat

        public repeat​(PyObject object,
                      int times)
    • Method Detail

      • __len__

        public int __len__()
        Description copied from class: PyObject
        Equivalent to the standard Python __len__ method. Part of the mapping discipline.
        Overrides:
        __len__ in class PyObject
        Returns:
        the length of the object
      • __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