-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Simplify partial() rough equivalent code #124941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -347,8 +347,7 @@ The :mod:`functools` module defines the following functions: | |
|
|
||
| def partial(func, /, *args, **keywords): | ||
| def newfunc(*more_args, **more_keywords): | ||
| keywords_union = {**keywords, **more_keywords} | ||
| return func(*args, *more_args, **keywords_union) | ||
| return func(*args, *more_args, **keywords | more_keywords) | ||
|
||
| newfunc.func = func | ||
| newfunc.args = args | ||
| newfunc.keywords = keywords | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.