diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2019-04-10 15:38:59 +0200 |
|---|---|---|
| committer | Michele Simionato <michele.simionato@gmail.com> | 2019-04-10 15:40:04 +0200 |
| commit | 61e53a4c905213a28d29fd6c2f0f467d23bf9702 (patch) | |
| tree | 1f94cb545dc2054620a1b73223d903d9a1ed7f84 | |
| parent | 995e4f718bf667992f5b9a3984bd477d576daa10 (diff) | |
| download | python-decorator-git-61e53a4c905213a28d29fd6c2f0f467d23bf9702.tar.gz | |
Small change to the docs suggested by https://github.com/yjqiang
| -rw-r--r-- | src/tests/documentation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/documentation.py b/src/tests/documentation.py index 0cfa8bf..56c0e19 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -1238,8 +1238,8 @@ can only be used on user-defined Python functions or methods. They cannot be used on generic callable objects or built-in functions, due to limitations of the standard library's ``inspect`` module, especially for Python 2. In Python 3.5, many such limitations have been removed, but -I still think that it is cleaner and safer to decorate only -functions. If you want to decorate things like classmethods/staticmethods +I still think that it is cleaner and safer to decorate only functions and +coroutines. If you want to decorate things like classmethods/staticmethods and general callables - which I will never support in the decorator module - I suggest you to look at the [wrapt](https://wrapt.readthedocs.io/en/latest/) project by Graeme Dumpleton. |
