Python csv reader.next() vs next(reader)
<p>When reading files using the <code>csv</code> module, there are two ways to iterate through the generator returned by <code>csv.reader</code>.</p>

<pre><code>with open('foo.csv') as f:
    reader = csv.reader(f)
    row1 = reader.next()
    row2 = next(reader)
</code></pre>

<p>Is there any difference between how <code>row1</code> and <code>row2</code> are obtained? Is one preferred over the other?</p>