(self, key, value,
                    dict_setitem=dict.__setitem__, proxy=_proxy, Link=_Link)
od.__setitem__(i, y) <==> od[i]=y
od.__setitem__(i, y) <==> od[i]=y
od . __setitem__ ( i y ) < == > od [ i ] = y
def __setitem__(self, key, value,
                    dict_setitem=dict.__setitem__, proxy=_proxy, Link=_Link):
        'od.__setitem__(i, y) <==> od[i]=y'
        # Setting a new item creates a new link at the end of the linked list,
        # and the inherited dictionary is updated with the new key/value pair.
        if key not in self:
            self.__map[key] = link = Link()
            root = self.__root
            last = root.prev
            link.prev, link.next, link.key = last, root, key
            last.next = link
            root.prev = proxy(link)
        dict_setitem(self, key, value)
def __setitem__ ( self , key , value , dict_setitem = dict . __setitem__ , proxy = _proxy , Link = _Link ) : # Setting a new item creates a new link at the end of the linked list, # and the inherited dictionary is updated with the new key/value pair. if key not in self : self . __map [ key ] = link = Link ( ) root = self . __root last = root . prev link . prev , link . next , link . key = last , root , key last . next = link root . prev = proxy ( link ) dict_setitem ( self , key , value )