title: defaultdict is not defined
body: <p>Using python 3.2.</p>
  
  <pre><code>import collections
  d = defaultdict(int)
  </code></pre>
  
  <p>run</p>
  
  <pre><code>NameError: name 'defaultdict' is not defined
  </code></pre>
  
  <p>Ive restarted Idle. I know collections is being imported, because typing </p>
  
  <pre><code>collections
  </code></pre>
  
  <p>results in </p>
  
  <pre><code>&lt;module 'collections' from '/usr/lib/python3.2/collections.py'&gt;
  </code></pre>
  
  <p>also help(collections) shows me the help including the defaultdict class.</p>
  
  <p>What am I doing wrong?</p>