python: The correct way to assign a value from itertools.permutations()?
<p>The following code creates a multi dimensional list (not sure if that's the Pythonic was of saying it. PHP guy here)</p>

<pre><code>patterns.append(list(itertools.permutations('1234567',7)))
</code></pre>

<p>the value of patterns becomes:</p>

<pre><code>([
    [1,2,3,4,5,6,7],
    [1,2,3,4,5,7,6], ...

])
</code></pre>

<p>What I want is for the result to be like this:</p>

<pre><code>([1,2,3,4,5,6,7], [1,2,3,4,5,7,6]...)
</code></pre>

<p>If i try doing:</p>

<pre><code>patterns = list(itertools.permutations('1234567',7))
</code></pre>

<p>the result is a list of individual numbers</p>

<pre><code>123445671234576
</code></pre>

<p>What am I missing?</p>

<p>Thanks,</p>
