Is there a more pythonic way of storing parameters so they can be used in a function call?
<p>I'm currently writing a small script using pygame, but I don't believe this question to be related strictly to pygame.</p>

<p>I have a class that holds a dictionary of function parameters contained in tuples:</p>

<pre><code>self.stim = {1:(firstParam, secondparam, thirdparam),
            2:(firstParam2, secondparam2, thirdparam2),
            3:(firstParam3, secondParam3, thirdParam3)}
</code></pre>

<p>In the same class, I have a function that issues a call to another function using these parameters:</p>

<pre><code>def action(self, stimType):
    pygame.draw.rect(self.stim[stimType][0], self.stim[stimType][1], self.stim[stimType][2])
</code></pre>

<p>It works, but it's a bit ugly to read. I was wondering if there was a more elegant way of storing these parameters such that a function can be called using them?</p>

<p>Thanks!</p>
