title: Fastest way to update attribute in in list of dictionaries
body: <p>I have 2 lists of dictionary and I get an update message with new attributes for a specific order in any of the 2 lists. (and I cannot merge the lists)</p>
  <p>So let's say I have the following:</p>
  <pre><code>orders_list1=[
      {&quot;price&quot;:1, &quot;quantity&quot;:20, &quot;orderID&quot;:&quot;order1&quot;},
      {&quot;price&quot;:2, &quot;quantity&quot;:10, &quot;orderID&quot;:&quot;order2&quot;}]
  
  orders_list2=[
      {&quot;price&quot;:1, &quot;quantity&quot;:20, &quot;orderID&quot;:&quot;order3&quot;},
      {&quot;price&quot;:2, &quot;quantity&quot;:10, &quot;orderID&quot;:&quot;order4&quot;}]
  
  message = {&quot;action&quot;: &quot;update&quot;, &quot;data&quot;: [{&quot;orderID&quot;:&quot;order2&quot;, &quot;price&quot;:5}]}
  </code></pre>
  <p>Then I'd like to obtain:</p>
  <pre><code>orders_list1=[
      {&quot;price&quot;:1, &quot;quantity&quot;:20, &quot;orderID&quot;:&quot;order1&quot;},
      {&quot;price&quot;:5, &quot;quantity&quot;:10, &quot;orderID&quot;:&quot;order2&quot;}]
  
  orders_list2=[
      {&quot;price&quot;:1, &quot;quantity&quot;:20, &quot;orderID&quot;:&quot;order3&quot;},
      {&quot;price&quot;:2, &quot;quantity&quot;:10, &quot;orderID&quot;:&quot;order4&quot;}]
  </code></pre>
  <p>I would like to update in a fast way the appropriate order. I don't think for loops are the fastest.</p>
  <p>Any suggestion?</p>
  <p>Thank you!</p>