Kaydet (Commit) b981fec8 authored tarafından Sergey Fedoseev's avatar Sergey Fedoseev Kaydeden (comit) Victor Stinner

Use dict unpacking in functools.partial() docs (GH-9412)

üst 3bd0d620
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment