def clear_memoized_methods(obj, *method_names):
 for key in list(getattr(obj, '_memoized_results', {}).keys()):
  if (key[0] in method_names):
   del obj._memoized_results[key]
 property_dict = obj._cache_
 for prop in method_names:
  inner_attname = ('__%s' % prop)
  if (inner_attname in property_dict):
   del property_dict[inner_attname]

def clear_memoized_methods ( obj , * method_names ) : for key in list ( getattr ( obj , '_memoized_results' , { } ) . keys ( ) ) : if ( key [ 0 ] in method_names ) : del obj . _memoized_results [ key ] property_dict = obj . _cache_ for prop in method_names : inner_attname = ( '__%s' % prop ) if ( inner_attname in property_dict ) : del property_dict [ inner_attname ]
clear the memoized method or @memoizeproperty results for the given method names from the given object .