how to define generic variables in Python (syntax question)
<p>With Python it is easy to declare something like</p>

<pre><code>self.x = "something"
print self.x #outputs "something"
</code></pre>

<p>I want to have something like this:</p>

<pre><code>param["key"] = "x"
self.param["key"] = "something" #here I actually want to access this "self" parameter as below with its value defined above
print self.x #supposed to output "something" as well. Note that "x" refers to value defined in the first line
</code></pre>

<p>Is there any such thing? Is there any similar alternatives?</p>

<p>Thanks in advance.</p>
