diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-06-12 01:46:50 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-06-12 01:46:50 (GMT) |
commit | 0c0da48aede7e56f722fd8240bf7c27a862bc4d3 (patch) | |
tree | 898a5fc9d59017e5cdb8c2366b08e470da2d736d /Doc/library/functools.rst | |
parent | 0d18c15fbf4365764e61017c1ccb6cecc49edf84 (diff) | |
download | cpython-0c0da48aede7e56f722fd8240bf7c27a862bc4d3.zip cpython-0c0da48aede7e56f722fd8240bf7c27a862bc4d3.tar.gz cpython-0c0da48aede7e56f722fd8240bf7c27a862bc4d3.tar.bz2 |
Issue #24136: Document generalized unpacking, PEP 448
Based on patches by Konstantin Molchanov and Neil Girdhar.
Diffstat (limited to 'Doc/library/functools.rst')
-rw-r--r-- | Doc/library/functools.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 2dbcb5c..abdd66f 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -177,7 +177,7 @@ The :mod:`functools` module defines the following functions: def newfunc(*fargs, **fkeywords): newkeywords = keywords.copy() newkeywords.update(fkeywords) - return func(*(args + fargs), **newkeywords) + return func(*args, *fargs, **newkeywords) newfunc.func = func newfunc.args = args newfunc.keywords = keywords |