The most efficient way to iterate over a list of elements. Python 2.7
<p>I am trying to iterate over a list of elements, however the list can be massive and takes too long to execute. I am using newspaper api. The for loop I constructed is:</p>

<pre><code>for article in list_articles:
</code></pre>

<p>Each article in the list_articles are an object in the format of:</p>

<pre><code>&lt;newspaper.article.Article object at 0x1103e1250&gt;
</code></pre>

<p>I checked that some recommended using xrange or range, however that did not work in my case, giving a type error:</p>

<pre><code>TypeError: 'int' object is not iterable
</code></pre>

<p>It would be awesome if anyone can point me to the right direction or give me some idea that can efficietly increase iterating over this list.</p>