title: Compact way to call a class member to all elements of a list of objects
body: <p>Question: How to define a compact construction for this loop:</p>
  
  <pre><code>for V in L:
     V.f()
  </code></pre>
  
  <p>Where:</p>
  
  <ul>
  <li><code>L</code>: is a list of objects of a given type <code>A</code></li>
  <li><code>f()</code>: a method of <code>A</code>.</li>
  </ul>
  
  <p>For example:</p>
  
  <pre><code>class A:
      def f(self):
          print "foobar... "
  
  # Construct the list
  a1 = A()
  a2 = A()
  a3 = A()
  L = [a1, a2, a3]
  
  for V in L:
      V.f()
  </code></pre>
  
  <p>I found a way of doing that with a map call and a lambda function:</p>
  
  <pre><code> map(lambda x: x.f(), L)
  </code></pre>
  
  <p>However, this call returns a list, which I wish not to construct.</p>
  
  <p>Is there a more elegant way of doing this?</p>