title: Python - Stumbled upon "'DictReader' object is not subscriptable"
body: <p>I have no idea what this error is caused by, or how to fix it.</p>
  
  <p>Basically, what I try to achieve is to read from a .csv file and make a dictionary from the information inside it.
  I've done it before without any problems, but this time it's really weird.</p>
  
  <pre><code>#Read External Data
  DataNames = os.listdir("Data")
  
  #Import Classes
  ClassesPath = os.path.join("Data", DataNames[1])
  Classes = open(ClassesPath)
  global ClassesDict
  ClassesDict = csv.DictReader(Classes, delimiter=",")
  </code></pre>
  
  <p>Upon trying to run</p>
  
  <pre><code>print(ClassesDict)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>print(ClassesDict["ID"])
  </code></pre>
  
  <p>it always give me the error:</p>
  
  <pre><code>TypeError: 'DictReader' object is not subscriptable
  </code></pre>
  
  <p>I do know that lists, dictionaries, etc. are subscriptable objects, but my variable "ClassesDict" <strong>is</strong> (or should be) a dictionary.</p>
  
  <p>Thank you very much in advance.</p>