Create list of object attributes in python
<p>I have a list of objects:</p>

<pre><code>[Object_1, Object_2, Object_3]
</code></pre>

<p>Each object has an attribute: time:</p>

<pre><code>Object_1.time = 20
Object_2.time = 30
Object_3.time = 40
</code></pre>

<p>I want to create a list of the time attributes:</p>

<pre><code>[20, 30, 40]
</code></pre>

<p>What is the most efficient way to get this output?  It can't be to iterate over the object list, right?:</p>

<pre><code>items = []
for item in objects:
    items.append(item.time)
</code></pre>
