How to get flat list in list comprehension from lists of arbitrary number of elements?
<p>I have something like this:</p>

<pre><code>[e for e in ([n for n in xrange(random.randrange(1, 5))] for x in xrange(10))]
</code></pre>

<p>It produces:</p>

<pre><code>[[0, 1, 2, 3], [0, 1, 2], [0], [0], [0, 1], [0], [0, 1], [0, 1, 2, 3], [0, 1, 2], [0, 1, 2]]
</code></pre>

<p>And I need the same but in flat structure.</p>

<p>For now I use something like:</p>

<pre><code>l = []
[l.extend(e) for e in ([n for n in xrange(random.randrange(1, 5))] for x in xrange(10))]
</code></pre>

<p>But is there something less obsucre to achieve this 'unpacking' of arbitrary length list inside comprehension?</p>
