diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-04-30 15:48:50 -0400 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-04-30 15:48:50 -0400 |
commit | fac46588dfc6bfbd095630539d9ad0a35a789ff0 (patch) | |
tree | 5b62ec4f0c51ec0720affde95124d325d163b2ff | |
parent | 936b00c83a6d5945ddbfa46d17486c4af2ccf745 (diff) | |
download | six-fac46588dfc6bfbd095630539d9ad0a35a789ff0.tar.gz |
document wraps
-rw-r--r-- | documentation/index.rst | 7 |
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 >>>>>>>>>>>>>>>>>>>> |