python: how to get all members of an array except for ones that match a condition
<p>I'm trying to create an array of all .asm files I need to build <em>except</em> for one that is causing me trouble right now. Here's what I have, based on the Scons <a href="http://www.scons.org/doc/HTML/scons-user/a10760.html" rel="nofollow">"Handling Common Cases"</a> page:</p>

<pre><code>projfiles['buildasm'] = 
  ['#build/'+os.path.splitext(x)[0]+'.asm' for x in projfiles['a']];
</code></pre>

<p>(this maps paths of the form 'foo.a' to '#build/foo.asm')</p>

<p>I want to run this for each member of <code>projfiles['a']</code> <em>except</em> if a member of the array matches 'baz.a'. How can I do this?</p>
