def clear(self):
"""Clear the state so future accesses reload it."""
for attr in list(self.__dict__):
if attr.startswith('__cache_'):
delattr(self, attr)
def clear(self):
"""Clear the state so future accesses reload it."""
for attr in list(self.__dict__):
if attr.startswith('__cache_'):
delattr(self, attr)