 prefer the <code class="docutils literal notranslate"><span class="pre">iteritems</span></code> method which simply returns an iterator instead of a list.
In Python 3.x the <code class="docutils literal notranslate"><span class="pre">iteritems</span></code> is removed and the <code class="docutils literal notranslate"><span class="pre">items</span></code> method returns view objects. The benefit of these view objects compared to the tuples containing copies is that every change made to the dictionary is re