parameters: (self)
docstring: D.clear() -> None.  Remove all items from D.
docstring_summary: D.clear() -> None.  Remove all items from D.
docstring_tokens: D . clear () - > None . Remove all items from D .
function: def clear(self):
          'D.clear() -> None.  Remove all items from D.'
          try:
              while True:
                  self.popitem()
          except KeyError:
              pass
function_tokens: def clear ( self ) : try : while True : self . popitem ( ) except KeyError : pass