title: Python's equivalent of $this->$varName
body: <p>In PHP I can do the following:</p>
  
  <pre><code>$myVar = 'name';
  
  print $myClass-&gt;$myVar;
  // Identical to $myClass-&gt;name
  </code></pre>
  
  <p>I wish to do this in Python but can't find out how</p>