Can Python's map function call object member functions?
<p>I need to do something that is functionally equivalent to this:</p>

<pre><code>for foo in foos:
    bar = foo.get_bar()
    # Do something with bar
</code></pre>

<p>My first instinct was to use <code>map</code>, but this did not work:</p>

<pre><code>for bar in map(get_bar, foos):
    # Do something with bar
</code></pre>

<p>Is what I'm trying to accomplish possible with <code>map</code>? Do I need to use a list comprehension instead? What is the most Pythonic idiom for this?</p>
