Skip to content

Commit 12cd97a

Browse files
committed
Rewrite comments
1 parent 97f23cd commit 12cd97a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_functools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3042,7 +3042,9 @@ class D2:
30423042
def __get__(self, inst, owner):
30433043
# Different instance bound to the returned method
30443044
# doesn't cause it to receive the original instance
3045-
# as a separate argument. Return a partial() to workaround.
3045+
# as a separate argument.
3046+
# To work around this, wrap the returned bound method
3047+
# with `functools.partial`.
30463048
return C().special5
30473049

30483050
generic.register(D2, D2())

0 commit comments

Comments
 (0)