Home
last modified time | relevance | path

Searched refs:user_function (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Lib/
Dreprlib.py12 def decorating_function(user_function): argument
21 result = user_function(self)
27 wrapper.__module__ = getattr(user_function, '__module__')
28 wrapper.__doc__ = getattr(user_function, '__doc__')
29 wrapper.__name__ = getattr(user_function, '__name__')
30 wrapper.__qualname__ = getattr(user_function, '__qualname__')
31 wrapper.__annotations__ = getattr(user_function, '__annotations__', {})
Dfunctools.py510 user_function, maxsize = maxsize, 128
511 wrapper = _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo)
513 return update_wrapper(wrapper, user_function)
518 def decorating_function(user_function): argument
519 wrapper = _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo)
521 return update_wrapper(wrapper, user_function)
525 def _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo): argument
546 result = user_function(*args, **kwds)
560 result = user_function(*args, **kwds)
584 result = user_function(*args, **kwds)
[all …]
Ddataclasses.py228 def _recursive_repr(user_function): argument
233 @functools.wraps(user_function)
240 result = user_function(self)
Dssl.py678 return inner.user_function
716 inner.user_function = callback
/third_party/python/Doc/library/
Dfunctools.rst29 .. decorator:: cache(user_function)
136 .. decorator:: lru_cache(user_function)
159 If *user_function* is specified, it must be a callable. This allows the
260 Added the *user_function* option.