map when return value is not required
<p>I have a list of objects and I want to change the value of an attribute of all the objects (to the same value-NewValue). </p>

<p>Is <code>map()</code> more efficient than a normal for loop in this situation where the function(lambda) doesn't return any value?</p>

<pre><code>map ( lambda x: x.attribute = NewValue, li)
</code></pre>

<p>vs</p>

<pre><code>for i in li:
    i.attribute = NewValue
</code></pre>
