How do I iterate through all possible values in a series of fixed lists?
<p>(python)</p>

<p>so I have the following values &amp; lists:</p>

<pre><code>name = colour
size = ['256', '512', '1024', '2048', '4096', '8192', '16384', '32768']
depth = ['8', '16', '32']
scalar = ['False', 'True']
alpha = ['False', 'True']
colour = app.Color(0.5)
</code></pre>

<p>and I want to iterate over these to produce every possible combination with the following structure:</p>

<pre><code>createChannel(ChannelInfo(name, size, depth, scalar, alpha, colour))
</code></pre>

<p>so the values for name, size, etc must stay in the same place, but they must iterate over all possible combinations of size, depth, etc..</p>

<p>i.e. I want to return something like this:</p>

<pre><code>createChannel(ChannelInfo('colour', 256, 8, False, True, 0.5)
createChannel(ChannelInfo('colour1', 256, 8, False, False, 0.5)
createChannel(ChannelInfo('colour2', 256, 16, False, False, 0.5)
</code></pre>

<p>...etc...there are 96 combinations</p>

<p>Thanks</p>
