Commit 01b58de
committed
gh-152405 Safer mapping proxy comparisons
Essentially:
* if `w` is a mapping proxy hen unwrap it.
* if `w` uses the dict comparison operator then use that.
* otherwise return NOT_IMPLEMENTED (on the basis that it's likely
that `w`'s rich comparison can do it through the standard
mapping interface.1 parent 499d31f commit 01b58de
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
1235 | | - | |
1236 | 1235 | | |
1237 | | - | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
1238 | 1248 | | |
1239 | | - | |
| 1249 | + | |
1240 | 1250 | | |
1241 | 1251 | | |
1242 | 1252 | | |
| |||
0 commit comments