MCPcopy Index your code
hub / github.com/python/cpython / decorating_function

Function decorating_function

Lib/functools.py:597–600  ·  view source on GitHub ↗
(user_function)

Source from the content-addressed store, hash-verified

595 'Expected first argument to be an integer, a callable, or None')
596
597 def decorating_function(user_function):
598 wrapper = _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo)
599 wrapper.cache_parameters = lambda : {'maxsize': maxsize, 'typed': typed}
600 return update_wrapper(wrapper, user_function)
601
602 return decorating_function
603

Callers

nothing calls this directly

Calls 2

_lru_cache_wrapperFunction · 0.85
update_wrapperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…