next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Python :: iter

iter -- get iterator of iterable python object



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

See also

Ways to use iter :

For the programmer

The object iter is a method function.