def clear(self):
        """Unset everything."""
        for k in list(self.keys()):
            if k not in self.extrakeys:
                del self[k]
def clear ( self ) : for k in list ( self . keys ( ) ) : if k not in self . extrakeys : del self [ k ]
Unset everything.