dict.items() vs dict.iteritems and similar questions

skip at pobox.com skip at pobox.com
Wed Mar 14 15:21:11 EDT 2007


    >> I find "iter<anything>" to be extremely ugly and hope to avoid using
    >> them altogether until they are gone in Py3k.

    Drew> Ugly, maybe, but don't you take a decent performance hit when
    Drew> loading the entire dict into memory at once? Especially if the
    Drew> dict is large?

Sure, but I try hard to keep my dicts small. ;-)

Skip



More information about the Python-list mailing list