[Python-checkins] cpython (merge 3.5 -> default): Issue #26615: Add missing __qualname__ entry to functools.update_wrapper() docs

berker.peksag python-checkins at python.org
Mon Apr 18 14:19:56 EDT 2016


https://hg.python.org/cpython/rev/ee9921b29fd8
changeset: 101053:ee9921b29fd8
parent: 101051:98cda226d208
parent: 101052:11d8f5d1968d
user: Berker Peksag <berker.peksag at gmail.com>
date: Mon Apr 18 21:21:10 2016 +0300
summary:
 Issue #26615: Add missing __qualname__ entry to functools.update_wrapper() docs
Patch by Xiang Zhang.
files:
 Doc/library/functools.rst | 8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -375,10 +375,10 @@
 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
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /