Can't interact with an object during a second pass
<p>I've run into a strange problem while writing some code for my personal use.  I'll let my code do the talking...</p>

<pre><code>def getValues(self, reader):
    for row in reader:
        #does stuff

    return assetName, efficiencyRating

def handleSave(self, assetName, reader):
    outputFile = open(self.outFilename, 'w')

    for row in reader:
        #does other stuff

    outputFile.close()
    return

def handleCalc(self):
    reader = csv.reader(open(self.filename), delimiter = ',', quotechar = '\"')

    assetName, efficiencyRating = self.getValues(reader)

    self.handleSave(assetName, reader)
</code></pre>

<p>This is just a portion of the code (obviously).  The problem I'm having is in <code>handleSave</code> trying to loop through <code>reader</code>.  It doesn't appear to ever enter the loop?  I'm really not sure what is happening.  The loop in <code>getValues</code> behaves as expected.</p>

<p>Can someone explain what is happening?  What have I done wrong?  What should I do to fix this?</p>
