summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2015-09-21 16:34:21 +0200
committerMichele Simionato <michele.simionato@gmail.com>2015-09-21 16:34:21 +0200
commit83aff01ac4a17fb104a3af4400160a083aab8ca2 (patch)
tree7edd7cae60329ef642ce39dd613c4ec40c007a3a /src
parente13cf0704b7c28f1de1e71cb7c59b47a84daa9ca (diff)
downloadpython-decorator-git-83aff01ac4a17fb104a3af4400160a083aab8ca2.tar.gz
Fixed the docs
Diffstat (limited to 'src')
-rw-r--r--src/tests/documentation.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/documentation.py b/src/tests/documentation.py
index 81602c8..766c4c6 100644
--- a/src/tests/documentation.py
+++ b/src/tests/documentation.py
@@ -147,11 +147,14 @@ that depends on non-hashable arguments):
$$memoize_uw
-Here i used the functools.update_wrapper_ utility, which has
+Here I used the functools.update_wrapper_ utility, which has
been added in Python 2.5 expressly to simplify the definition of decorators
(in older versions of Python you need to copy the function attributes
``__name__``, ``__doc__``, ``__module__`` and ``__dict__``
from the original function to the decorated function by hand).
+Here is an example of usage:
+
+$$f1
.. _functools.update_wrapper: https://docs.python.org/3/library/functools.html#functools.update_wrapper