8000 gh-124652: partialmethod simplifications by dg-pb · Pull Request #124788 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-124652: partialmethod simplifications #124788

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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
Prev Previous commit
Next Next commit
is tuple rollback
  • Loading branch information
dg-pb committed Jan 4, 2025
commit 7b247274f7a3d3286f9482e859d62ccbbc12d56e
3 changes: 1 addition & 2 deletions Lib/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,7 @@ def __setstate__(self, state):

phcount, merger = _partial_prepare_merger(args)

if type(args) is not tuple:
args = tuple(args) # just in case it's a subclass
args = tuple(args) # just in case it's a subclass
if kwds is None:
kwds = {}
elif type(kwds) is not dict: # XXX does it need to be *exactly* dict?
Expand Down
Loading
0