Python 3.2 を使用しています。
import collections
d = defaultdict(int)
走る
NameError: name 'defaultdict' is not defined
Idle を再起動しました。入力しているため、コレクションがインポートされていることはわかっています
collections
結果は
<module 'collections' from '/usr/lib/python3.2/collections.py'>
また、help(collections) は、defaultdict クラスを含むヘルプを表示します。
私は何を間違っていますか?