parameters: (self)
docstring: This is slow (creates N new iterators!) but effective.
docstring_summary: This is slow (creates N new iterators!) but effective.
docstring_tokens: This is slow ( creates N new iterators! ) but effective .
function: def clear(self):
          """This is slow (creates N new iterators!) but effective."""
          try:
              while True:
                  self.pop()
          except KeyError:
              pass
function_tokens: def clear ( self ) : try : while True : self . pop ( ) except KeyError : pass