nditer.
enable_external_loop
When the “external_loop” was not used during construction, but is desired, this modifies the iterator to behave as if the flag was specified.
numpy.nditer.debug_print
numpy.nditer.iternext