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
rm commented code
  • Loading branch information
dg-pb committed Sep 30, 2024
commit 10ee9725bce91150af0ff1a45b99eaba6c421758
2 changes: 0 additions & 2 deletions Lib/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,6 @@ def __setstate__(self, state):
(namespace is not None and not isinstance(namespace, dict))):
raise TypeError("invalid partial state")

# if args and args[-1] is Placeholder:
# raise TypeError("unexpected trailing Placeholders")
phcount, merger = _partial_prepare_merger(args)

args = tuple(args) # just in case it's a subclass
Expand Down
Loading
0