Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
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
Prev Previous commit
Next Next commit
Rewrite comments
  • Loading branch information
johnslavik committed Feb 9, 2026
commit 12cd97a100626a7130532fa586e79ebf0a4d09df
4 changes: 3 additions & 1 deletion Lib/test/test_functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3042,7 +3042,9 @@ class D2:
def __get__(self, inst, owner):
# Different instance bound to the returned method
# doesn't cause it to receive the original instance
# as a separate argument. Return a partial() to workaround.
# as a separate argument.
# To work around this, wrap the returned bound method
# with `functools.partial`.
return C().special5

generic.register(D2, D2())
Expand Down
Loading