code: def _build_showstr(self, seed):
          
          output = ["%s (%s) data" % (seed, self.params['lang'])]
  
          output.append('{')
  
          maxwidth = WPToolsQuery.MAXWIDTH
  
          for item in sorted(self.data):
  
              if self.data[item] is None:
                  continue
  
              prefix = item
              value = self.data[item]
  
              if isinstance(value, dict):
                  prefix = "%s: <dict(%d)>" % (prefix, len(value))
                  value = ', '.join(value.keys())
              elif isinstance(value, int):
                  prefix = "%s:" % prefix
                  if 'pageid' not in prefix:
                      value = "{:,}".format(value)
              elif isinstance(value, list):
                  prefix = "%s: <list(%d)>" % (prefix, len(value))
                  value = ', '.join((safestr(x) for x in value if x))
              elif isinstance(value, tuple):
                  prefix = "%s: <tuple(%d)>" % (prefix, len(value))
                  value = ', '.join((safestr(x) for x in value if x))
              elif utils.is_text(value):
                  value = value.strip().replace('\n', '')
                  if len(value) > (maxwidth - len(prefix)):
                      prefix = "%s: <str(%d)>" % (prefix, len(value))
                  else:
                      prefix = "%s:" % prefix
  
              output.append("  %s %s" % (prefix, value))
  
          output.append('}')
  
          return output
docs: Returns show() display string for data attribute