(self)
>>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
        >>> d.clear()
        >>> d
        OrderedDict([])
>>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
        >>> d.clear()
        >>> d
        OrderedDict([])
>>> d = OrderedDict ((( 1 3 ) ( 3 2 ) ( 2 1 ))) >>> d . clear () >>> d OrderedDict ( [] )
def clear(self):
        """
        >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
        >>> d.clear()
        >>> d
        OrderedDict([])
        """
        dict.clear(self)
        self._sequence = []
def clear ( self ) : dict . clear ( self ) self . _sequence = [ ]