title: Unexpected results feeding Django File upload object to Python CSV module
body: <p>I have no problems getting the file to upload and if I save it to disk, all formatting is intact.</p>
  
  <p>I wrote a function to read in the the file within Django using:</p>
  
  <pre><code>data = csv.reader(f.read())
  </code></pre>
  
  <p>where f is the Django file object that I get from 'form.cleaned_data['file']' and yes the file is already bound to the form.</p>
  
  <p>When I try to read the file using</p>
  
  <pre><code>for row in data:
      logging.debug(row)
  </code></pre>
  
  <p>I get an unexpected result in that it appears to be producing small packs of the data almost as if its reading some buffer. for example, for my float fields I get this when I log each row:</p>
  
  <p>['0'] ['.'] ['0'] ['5']['', ''] ['0'] ['.'] ['2'] etc etc... where each item between the square bracket is actually from one row (ie. a newline)</p>
  
  <p>csv.reader requires the object it takes to support the iterator protocol which I believe the Django File object <a href="http://docs.djangoproject.com/en/dev/ref/files/file/" rel="nofollow noreferrer">does</a> </p>
  
  <p>So what am I doing wrong?</p>