Is it possible to directly extend multiple lists using a tuple of lists returned by a function?
<p>I have a function that checks for file and directory changes within a given function and returns a tuple of lists, like this: <code>addedFiles, removedFiles, addedDirs, removedDirs</code>. Each of the named sublists in the tuple will be a list of strings (or empty). I need to <em>append</em> the results return by the function to local versions of these lists.</p>

<p>This heavily modified demonstrates the result I am after:</p>

<pre><code>addedFiles, removedFiles, addedDirs, removedDirs = [],[],[],[]

for dir in allDirs:
    a,b,c,d = scanDir( dir )
    addedFiles.extend( a )
    removedFiles.extend( b )
    addedDirs.extend( c )
    removedDirs.extend( d )
</code></pre>

<p>But, I want to know if there is a better way to perform the section inside the <code>for</code> loop?<br>
Like this it just feels a bit ... <em>ugly</em>.</p>
