On Mar 14, 2:53 pm, [EMAIL PROTECTED] wrote: > >> When is it appropriate to use dict.items() vs dict.iteritems. > > Laurent> Both work, you may prefer xrange/iteritems for iteration on > Laurent> large collections... > > I find "iter<anything>" to be extremely ugly and hope to avoid using them > altogether until they are gone in Py3k. > > Skip
Skip - Ugly, maybe, but don't you take a decent performance hit when loading the entire dict into memory at once? Especially if the dict is large? -- http://mail.python.org/mailman/listinfo/python-list