def get_formatd(r, formatd=None):
 if (formatd is None):
  formatd = dict()
 for (i, name) in enumerate(r.dtype.names):
  dt = r.dtype[name]
  format = formatd.get(name)
  if (format is None):
   format = defaultformatd.get(dt.type, FormatObj())
  formatd[name] = format
 return formatd

def get_formatd ( r , formatd = None ) : if ( formatd is None ) : formatd = dict ( ) for ( i , name ) in enumerate ( r . dtype . names ) : dt = r . dtype [ name ] format = formatd . get ( name ) if ( format is None ) : format = defaultformatd . get ( dt . type , FormatObj ( ) ) formatd [ name ] = format return formatd
build a formatd guaranteed to have a key for every dtype name .