summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-04-18 18:21:10 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-04-18 18:21:10 (GMT)
commit1d0489269e714a9aa81a1defac96df0ab4444d91 (patch)
tree5f544dd5d39dd12c39fe43542c2cb7c1dba32a06
parent49ed08fd0bf159fdc1f2f1fecfef48d43f1a733c (diff)
parent472233ec835bfaaf1419c74956a0e64797a6a0c2 (diff)
downloadcpython-1d0489269e714a9aa81a1defac96df0ab4444d91.zip
cpython-1d0489269e714a9aa81a1defac96df0ab4444d91.tar.gz
cpython-1d0489269e714a9aa81a1defac96df0ab4444d91.tar.bz2
Issue #26615: Add missing __qualname__ entry to functools.update_wrapper() docs
Patch by Xiang Zhang.
-rw-r--r--Doc/library/functools.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index 72b1ecd..f4d7fdf 100644
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -375,10 +375,10 @@ The :mod:`functools` module defines the following functions:
assigned directly to the matching attributes on the wrapper function and which
attributes of the wrapper function are updated with the corresponding attributes
from the original function. The default values for these arguments are the
- module level constants *WRAPPER_ASSIGNMENTS* (which assigns to the wrapper
- function's *__name__*, *__module__*, *__annotations__* and *__doc__*, the
- documentation string) and *WRAPPER_UPDATES* (which updates the wrapper
- function's *__dict__*, i.e. the instance dictionary).
+ module level constants ``WRAPPER_ASSIGNMENTS`` (which assigns to the wrapper
+ function's ``__module__``, ``__name__``, ``__qualname__``, ``__annotations__``
+ and ``__doc__``, the documentation string) and ``WRAPPER_UPDATES`` (which
+ updates the wrapper function's ``__dict__``, i.e. the instance dictionary).
To allow access to the original function for introspection and other purposes
(e.g. bypassing a caching decorator such as :func:`lru_cache`), this function