diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 7d59ec9187d..ec3d5a529e6 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -213,8 +213,7 @@ The :mod:`functools` module defines the following functions: def partial(func, *args, **keywords): def newfunc(*fargs, **fkeywords): - newkeywords = keywords.copy() - newkeywords.update(fkeywords) + newkeywords = {**keywords, **fkeywords} return func(*args, *fargs, **newkeywords) newfunc.func = func newfunc.args = args