#NEWLINE# def __init__( self , array_type ) : #NEWLINE# #INDENT# self . array_type = array_type #NEWLINE# name = ( 'iter(%s)' % ( self . array_type , ) ) #NEWLINE# nd = array_type . ndim #NEWLINE# if ( ( nd == 0 ) or ( nd == 1 ) ) : #NEWLINE# #INDENT# yield_type = self . dtype #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# yield_type = array_type . copy ( ndim = ( array_type . ndim - 1 ) ) #NEWLINE# #UNINDENT# super ( ArrayIterator , self ) . __init__ ( name , yield_type )