Commit 7b16687
committed
don't use a slot wrapper from a different special method (closes #14658)
This also alters the fix to #11603. Specifically, setting __repr__ to
object.__str__ now raises a recursion RuntimeError when str() or repr() is
called instead of silently bypassing the recursion. I believe this behavior is
more correct.1 parent 790e005 commit 7b16687
3 files changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4430 | 4430 | | |
4431 | 4431 | | |
4432 | 4432 | | |
4433 | | - | |
| 4433 | + | |
| 4434 | + | |
| 4435 | + | |
| 4436 | + | |
| 4437 | + | |
| 4438 | + | |
| 4439 | + | |
| 4440 | + | |
| 4441 | + | |
4434 | 4442 | | |
4435 | 4443 | | |
4436 | 4444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2928 | 2928 | | |
2929 | 2929 | | |
2930 | 2930 | | |
2931 | | - | |
| 2931 | + | |
2932 | 2932 | | |
2933 | 2933 | | |
2934 | 2934 | | |
| |||
5757 | 5757 | | |
5758 | 5758 | | |
5759 | 5759 | | |
5760 | | - | |
| 5760 | + | |
| 5761 | + | |
5761 | 5762 | | |
5762 | 5763 | | |
5763 | 5764 | | |
| |||
0 commit comments