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