]> granicus.if.org Git - python/commitdiff
Issue #26615: Add missing __qualname__ entry to functools.update_wrapper() docs
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 18 Apr 2016 18:20:50 +0000 (21:20 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 18 Apr 2016 18:20:50 +0000 (21:20 +0300)
Patch by Xiang Zhang.

Doc/library/functools.rst

index 72b1ecd375196afa9aa25cbd69e17f6cd02d6fe6..f4d7fdf856da102b15e664008915658421eee668 100644 (file)
@@ -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