We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97f23cd commit 12cd97aCopy full SHA for 12cd97a
Lib/test/test_functools.py
@@ -3042,7 +3042,9 @@ class D2:
3042
def __get__(self, inst, owner):
3043
# Different instance bound to the returned method
3044
# doesn't cause it to receive the original instance
3045
- # as a separate argument. Return a partial() to workaround.
+ # as a separate argument.
3046
+ # To work around this, wrap the returned bound method
3047
+ # with `functools.partial`.
3048
return C().special5
3049
3050
generic.register(D2, D2())
0 commit comments