def parse_field_descriptor(descr, name=None):
 assert descr
 (type, tail) = eat_descriptor(descr)
 assert (not tail)
 if name:
  return ((type + ' ') + name)
 else:
  return type

def parse_field_descriptor ( descr , name = None ) : assert descr ( type , tail ) = eat_descriptor ( descr ) assert ( not tail ) if name : return ( ( type + ' ' ) + name ) else : return type
parse a field descriptor .