title: TypeError upon merely opening a file with csv.DictReader?
body: <p>I've just uploaded this CSV file via a form, POSTing it to my Python CGI script. The upload seems to have completed successfully. Permissions on the folder are 777, on the file are 755.</p>
  
  <pre><code>&gt;&gt;&gt; import csv
  &gt;&gt;&gt; csvHandle = open('files/TestData.csv', "rb")
  &gt;&gt;&gt; csvRawRecordDicts = csv.DictReader(csvHandle)
  
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in ?
  TypeError: __init__() takes at least 3 arguments (2 given)
  </code></pre>
  
  <p>The values are as follows:</p>
  
  <pre><code>csvRawRecordDicts undefined, 
  csv = &lt;module 'csv' from '/usr/lib/python2.3/csv.pyc'&gt;, 
  csv.DictReader = &lt;class csv.DictReader&gt;, 
  csvHandle = &lt;open file 'files/TestData.csv', mode 'rb'&gt;
  </code></pre>
  
  <p>The code works fine on my local computer with Python 2.5. The error happens on 2.3.</p>
  
  <p>What is the thought-process for debugging something like this? Where do I begin looking?</p>