(self)
return make_iter()
>>> ii = OrderedDict(((1, 3), (3, 2), (2, 1))).iteritems()
        >>> ii.next()
        (1, 3)
        >>> ii.next()
        (3, 2)
        >>> ii.next()
        (2, 1)
        >>> ii.next()
        Traceback (most recent call last):
        StopIteration
>>> ii = OrderedDict(((1, 3), (3, 2), (2, 1))).iteritems()
        >>> ii.next()
        (1, 3)
        >>> ii.next()
        (3, 2)
        >>> ii.next()
        (2, 1)
        >>> ii.next()
        Traceback (most recent call last):
        StopIteration
>>> ii = OrderedDict ((( 1 3 ) ( 3 2 ) ( 2 1 ))) . iteritems () >>> ii . next () ( 1 3 ) >>> ii . next () ( 3 2 ) >>> ii . next () ( 2 1 ) >>> ii . next () Traceback ( most recent call last ) : StopIteration
def iteritems(self):
        """
        >>> ii = OrderedDict(((1, 3), (3, 2), (2, 1))).iteritems()
        >>> ii.next()
        (1, 3)
        >>> ii.next()
        (3, 2)
        >>> ii.next()
        (2, 1)
        >>> ii.next()
        Traceback (most recent call last):
        StopIteration
        """
        def make_iter(self=self):
            keys = self.iterkeys()
            while True:
                key = keys.next()
                yield (key, self[key])
        return make_iter()
def iteritems ( self ) : def make_iter ( self = self ) : keys = self . iterkeys ( ) while True : key = keys . next ( ) yield ( key , self [ key ] ) return make_iter ( )