mike klaas xdihqxzrsgmailcom 2apr08 259 pm martin v löwis wrote jason orendorff wrote tue apr 1 2008 937 pm martin v löwis wrote think fairly obvious 2x keys change wasteful actually build list keys dictionary even values create tuples well want iterate common operation keys iterate look right dont think use case dkeys write k see subject say ditems exactly iterating items dictionary one common dict operations especially listgenexp contexts pygrep items wc l 128 pygrep iteritems wc l 211 may make seem like iteration twice common majority items use loops iteration appropriate 46 nonfor uses items codebase pygrep items grep v wc l 46 majority cases would work fine views input sorted etc needing physical list snapshot items used independently dictionary much rarer use case good distinguished iteration usecases extra syntax listditems mike _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom wed 06 aug 2008 230309 0700 python3000 spooky behavior dictitems friends