def iter_mode(n, obj='ndarray'):
 for mode in cap[obj][MODE]:
  for char in fmtdict[mode]:
   (yield randitems(n, obj, mode, char))

def iter_mode ( n , obj = 'ndarray' ) : for mode in cap [ obj ] [ MODE ] : for char in fmtdict [ mode ] : ( yield randitems ( n , obj , mode , char ) )
iterate through supported mode/char combinations .