#NEWLINE# def _get_recarray_field( array , key ) : #NEWLINE# #INDENT# "\n    Compatibility function for using the recarray base class's field method.\n    This incorporates the legacy functionality of returning string arrays as\n    Numeric-style chararray objects.\n    " #NEWLINE# field = np . recarray . field ( key , key ) #NEWLINE# if ( ( field . dtype . char in ( 'S' , 'U' ) ) and ( not isinstance ( field , chararray . chararray ) ) ) : #NEWLINE# #INDENT# field = field . view ( chararray . chararray ) #NEWLINE# #UNINDENT# return field