SciPy

numpy.lib.Arrayterator.shape

attribute

Arrayterator.shape

The shape of the array to be iterated over.

For an example, see Arrayterator.