title: Python: calling method in the map function
body: <p><code>map()</code> and list comprehension are roughly equivalent:</p>
  
  <pre><code>map(function, list1)
  [function(i) for i in list1]
  </code></pre>
  
  <p>What if the function we want to use is a method?</p>
  
  <pre><code>[i.function() for i in list1]
  map(.function, list1) # error!
  map(run_method(function), list1) # error!
  </code></pre>
  
  <p>How could I perform this kind of manipulation with <code>map</code>?</p>