Method summary
Methods
- __init__(self, args)
- __iter__(self)
- ndincr(self)
- next(self)
Version 1.0b1 API Documentation generated by Endo 2006-08-14
Pass in a sequence of integers corresponding
to the number of dimensions in the counter. This iterator
will then return an N-dimensional counter.
Example:
>>> for index in ndindex(4,3,2):
print index
(0,0,0)
(0,0,1)
(0,1,0)
...
(3,1,1)
(3,2,0)
(3,2,1)