def simple_cache(func):
 saved_results = {}
 def wrapper(cls, module):
  if (module in saved_results):
   return saved_results[module]
  saved_results[module] = func(cls, module)
  return saved_results[module]
 return wrapper

def simple_cache ( func ) : saved_results = { } def wrapper ( cls , module ) : if ( module in saved_results ) : return saved_results [ module ] saved_results [ module ] = func ( cls , module ) return saved_results [ module ] return wrapper
save results for the :meth:path .