| 3103 | return "special5" |
| 3104 | |
| 3105 | class D2: |
| 3106 | def __get__(self, inst, owner): |
| 3107 | # Different instance bound to the returned method |
| 3108 | # doesn't cause it to receive the original instance |
| 3109 | # as a separate argument. |
| 3110 | # To work around this, wrap the returned bound method |
| 3111 | # with `functools.partial`. |
| 3112 | return C().special5 |
| 3113 | |
| 3114 | generic.register(D2, D2()) |
| 3115 |