Mapping a list of dictionaries from one type to another
<p>I have list of dictonaries.  I wish type iterate over this list and map it to a slightly different type of dictionary. </p>

<p>Original dictionary:</p>

<pre><code>{'Test Name':blah, 'Test': blah, 'Att a': blah, 'Att b': blah}
</code></pre>

<p>New Dictionary:</p>

<pre><code>{'Test Name':blah, 'Test': blah, 'Failure': failure, 'Project': project}
</code></pre>

<p>In the original I only care about the attributes Test Name and Test.  In the new dictionary, I add a few extra attributes.</p>

<p>To do this, I do:</p>

<pre><code>mappedFailures = []; 
for fixedFailure in fixedFailures:
    mappedFailure = {'Test Suite': fixedFailure['Test Suite'], 
                     'Test':fixedFailure['Test'], 'Failure':failure, 
                     'Project': 'project'}
    mappedFailures.append(mappedFailure);
</code></pre>

<p>This is easy to read, but I was wondering was there a more pythonic way Thanks.</p>
