def memoized_method(func=None, key_factory=per_instance, **kwargs):
 return memoized(func=func, key_factory=key_factory, **kwargs)

def memoized_method ( func = None , key_factory = per_instance , ** kwargs ) : return memoized ( func = func , key_factory = key_factory , ** kwargs )
a convenience wrapper for memoizing instance methods .