parameters: (self)
return_statement: return "\n".join(rows)
docstring: Pretty-print all fields.
docstring_summary: Pretty-print all fields.
docstring_tokens: Pretty - print all fields .
function: def pprint(self):
          """Pretty-print all fields."""
          # pretty-print all fields
          names = self.dtype.names
          maxlen = max([len(name) for name in names])
          rows = []
          fmt = '%% %ds: %%s' % maxlen
          for name in names:
              rows.append(fmt % (name, getattr(self, name)))
          return "\n".join(rows)
function_tokens: def pprint ( self ) : # pretty-print all fields names = self . dtype . names maxlen = max ( [ len ( name ) for name in names ] ) rows = [ ] fmt = '%% %ds: %%s' % maxlen for name in names : rows . append ( fmt % ( name , getattr ( self , name ) ) ) return "\n" . join ( rows )