diff options
Diffstat (limited to 'docs/documentation.md')
-rw-r--r-- | docs/documentation.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/documentation.md b/docs/documentation.md index 1baa757..9d7ad9c 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -4,9 +4,9 @@ Decorators for Humans |Author | Michele Simionato| |---|---| |E-mail | michele.simionato@gmail.com| -|Version| 5.0.3 (2021-04-03)| +|Version| 5.0.4 (2021-04-03)| |Supports| Python 3.5, 3.6, 3.7, 3.8, 3.9| -|Download page| http://pypi.python.org/pypi/decorator/5.0.3| +|Download page| http://pypi.python.org/pypi/decorator/5.0.4| |Installation| ``pip install decorator``| |License | BSD license| @@ -1505,7 +1505,7 @@ and not if you pass them as keyword arguments: ``` This can be pretty confusing since non-keyword arguments are passed as keywork arguments, but it the way it works with ``functools.wraps`` and -the way many people expect it to work: +the way many people expect it to work. You can play with ```python @@ -1517,6 +1517,8 @@ the way many people expect it to work: return functools.wraps(wrapper) ``` +and see that we are consistent indeed. + In the present implementation, decorators generated by ``decorator`` can only be used on user-defined Python functions, methods or coroutines. I have no interest in decorating generic callable objects. If you want to |