def randitems_from_structure(fmt, t):
 (memlen, itemsize, _, _, _, _) = t
 return gen_items((memlen // itemsize), ('#' + fmt), 'numpy')

def randitems_from_structure ( fmt , t ) : ( memlen , itemsize , _ , _ , _ , _ ) = t return gen_items ( ( memlen // itemsize ) , ( '#' + fmt ) , 'numpy' )
return a list of random items for structure t with format fmtchar .