title: Calculate two maximums at the same time?
body: <p>I have a list of Point objects, each of which has an x and y property. I wish to calculate the maximum_x and maximum_y, without iterating through twice. I could do this:</p>
  
  <pre><code>max_x = max(points, key=lambda p: p.x)
  max_y = max(points, key=lambda p: p.y)
  </code></pre>
  
  <p>But of course, this will iterate twice. I could do it manually, but since finding the maximum is so simple, I fear it'll increase clutter. Is there any way to do this with the built in <code>max</code> function?</p>