title: Python, Evaluate a Variable value as a Variable
body: <p>I'd like to do something like below: particularly the 'f.eval(field)' part, such that it evaluates the value of the variable as the field name.  How does one accomplish this in Python?</p>
  
  <pre><code>def punctuated_object_list(objects, field):
      field_list = [f.eval(field) for f in objects]
      if len(field_list) &gt; 0:
          if len(field_list) == 1:
              return field_list[0]
          else:
              return ', '.join(field_list[:-1]) + ' &amp; ' + field_list[-1]
      else:
          return u''
  </code></pre>