def iter_format(nitems, testobj='ndarray'):
 for t in iter_mode(nitems, testobj):
  (yield t)
 if (testobj != 'ndarray'):
  raise StopIteration
 (yield struct_items(nitems, testobj))

def iter_format ( nitems , testobj = 'ndarray' ) : for t in iter_mode ( nitems , testobj ) : ( yield t ) if ( testobj != 'ndarray' ) : raise StopIteration ( yield struct_items ( nitems , testobj ) )
yield for all possible modes and format characters plus one random compound format string .