diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2021-04-03 15:57:33 +0200 |
|---|---|---|
| committer | Michele Simionato <michele.simionato@gmail.com> | 2021-04-03 15:57:33 +0200 |
| commit | 7fb1e34632b8f27578eb89c1c583c58b7dc74fde (patch) | |
| tree | 2d4fa4b223d8db51a755ecb6df9aa645ded0810e /docs/documentation.md | |
| parent | c12ec8557d8834e4c5c7c59b8275f3694ea6039d (diff) | |
| download | python-decorator-git-7fb1e34632b8f27578eb89c1c583c58b7dc74fde.tar.gz | |
Fixed func.__doc__ not being copied
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 |
