This function works just like its Python counterpart. In particular, i is an iterator for the iterable object x.
i1 : x = rs "range(3)" o1 = range(0, 3) o1 : PythonObject of class range |
i2 : i = iter x o2 = <range_iterator object at 0x7f2bd9a4e090> o2 : PythonObject of class range_iterator |
The object iter is a method function.