(self)
D.clear() -> None.  Remove all items from D.
D.clear() -> None.  Remove all items from D.
D . clear () - > None . Remove all items from D .
def clear(self):
        'D.clear() -> None.  Remove all items from D.'
        try:
            while True:
                self.popitem()
        except KeyError:
            pass
def clear ( self ) : try : while True : self . popitem ( ) except KeyError : pass