What's the Pythonic way to loop through an iterator when the first few values are special?
<p>The standard away is:</p>

<pre><code>it = iter(sequence)
for value in it:
    print value
</code></pre>

<p>I'm using a third party library that returns an iterator with the first value being a header, the second value being metadata and the rest of the values being records.  I have tried something like:</p>

<pre><code>db = dbfreader(f)
headers = db.next()
spec =  db.next()
record = db.next()
while record:
    print record
    record = db.next()
</code></pre>

<p>But that results in a StopIteration error</p>
