convert string to preexisting variable names
<p>How do i convert a string to the variable name in python?</p>

<p>e.g. </p>

<p>if the program contains a object named, self.post,that contains a variable named, i want to do something like,</p>

<pre><code>somefunction("self.post.id") = |Value of self.post.id|
</code></pre>
