creating lists based on parsed items

Basilisk96 basilisk96 at gmail.com
Wed Jun 6 18:49:27 EDT 2007


> If you are using Python 2.5, use a defaultdict instead, the very first
> example looks like what you want.
> <http://docs.python.org/lib/defaultdict-objects.html>
>
> --
> Gabriel Genellina

Uh-oh..
I am using Python 2.5 on WinXP, but when I tried the examples in the
manual, I got a "NameError: name 'defaultdict' is not defined".  What
am I missing in my Python installation?

-Basilisk96




More information about the Python-list mailing list