def _format_attrs(self):
max_categories = (<NUM_LIT:10> if get_option("<STR_LIT>") == <NUM_LIT:0> else<EOL>get_option("<STR_LIT>"))<EOL>attrs = [<EOL>('<STR_LIT>',<EOL>ibase.default_pprint(self.categories,<EOL>max_seq_items=max_categories)),<EOL>('<STR_LIT>', self.ordered)]<EOL>if self.name is not None:<EOL><INDENT>attrs.append(('<STR_LIT:name>', ibase.default_pprint(self.name)))<EOL><DEDENT>attrs.append(('<STR_LIT>', "<STR_LIT>" % self.dtype.name))<EOL>max_seq_items = get_option('<STR_LIT>') or len(self)<EOL>if len(self) > max_seq_items:<EOL><INDENT>attrs.append(('<STR_LIT>', len(self)))<EOL><DEDENT>return attrs<EOL>
Return a list of tuples of the (attr,formatted_value)