Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd0d62 commit b981fecCopy full SHA for b981fec
1 file changed
Doc/library/functools.rst
@@ -213,8 +213,7 @@ The :mod:`functools` module defines the following functions:
213
214
def partial(func, *args, **keywords):
215
def newfunc(*fargs, **fkeywords):
216
- newkeywords = keywords.copy()
217
- newkeywords.update(fkeywords)
+ newkeywords = {**keywords, **fkeywords}
218
return func(*args, *fargs, **newkeywords)
219
newfunc.func = func
220
newfunc.args = args
0 commit comments