title: Converting Unicode Values as String from a Python Dictionary
body: <p>I've built a python dictionary as follows:</p>
  
  <pre><code>result = {}
  for fc in arcpy.ListFeatureClasses():
      for field in arcpy.ListFields(fc):
          result.setdefault(field.name, []).append(fc)
  </code></pre>
  
  <p>which takes the name of the fields in each table (feature class) and sets tyhem as the key value in the dictionary and goes on to set the name of the table as the value. This works fine because my goal is to find out which tables have the same fields. I can go on to iter over the items and print out the key, value pairs:</p>
  
  <pre><code>for key, value in result.iteritems():
      print key + ": " +  str(value)
  </code></pre>
  
  <p>which returns:</p>
  
  <blockquote>
    <p>COMMENTS: [u'TM_FC', u'GT_FC', u'HG_FC', u'PO_FC', u'FU_FC']</p>
  </blockquote>
  
  <p>I want to print out the key values as a string value instead of the unicode stuff so that it looks like this:</p>
  
  <p>COMMENTS: 'TM_FC', 'GT_FC', 'HG_FC', 'PO_FC', 'FU_FC'</p>
  
  <p>I've been playing around with the 'str' function and various other ways to format and convert to string, but I'm always returning the same original value list. Can anyone suggest a way to accomplish what I'm looking for?</p>
  
  <p>Thanks,
  Mike</p>