cf.Partition.flat

Partition.flat()[source]

Return an iterator that yields the partition itself.

Returns :
out : generator

An iterator that yields the partition itself.

Examples

>>> type(p.flat())
<generator object flat at 0x519a0a0>
>>> for q in p.flat():
...     print q is p
True

Previous topic

cf.Partition.file_close

Next topic

cf.Partition.iterarray_indices

This Page