summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-30 15:48:50 -0400
committerBenjamin Peterson <benjamin@python.org>2014-04-30 15:48:50 -0400
commitfac46588dfc6bfbd095630539d9ad0a35a789ff0 (patch)
tree5b62ec4f0c51ec0720affde95124d325d163b2ff
parent936b00c83a6d5945ddbfa46d17486c4af2ccf745 (diff)
downloadsix-fac46588dfc6bfbd095630539d9ad0a35a789ff0.tar.gz
document wraps
-rw-r--r--documentation/index.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/documentation/index.rst b/documentation/index.rst
index 4f0a08e..298bea7 100644
--- a/documentation/index.rst
+++ b/documentation/index.rst
@@ -222,6 +222,13 @@ functions and methods is the stdlib :mod:`py3:inspect` module.
aliased to :class:`py3:object`.)
+.. function:: wraps(wrapped)
+
+ This is exactly the :func:`py3:functools.wraps` decorator, but it sets the
+ ``__wrapped__`` attribute on what it decorates as :func:`py3:functools.wraps`
+ does on Python versions after 3.2.
+
+
Syntax compatibility
>>>>>>>>>>>>>>>>>>>>