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