Commit 618f930
committed
gh-147957: pop items from UserDict in LIFO order
`UserDict.popitem` used to pop first-in, first-out since that's the
`MutableMapping` implementation. It now pops first-in, last-out since
that's the behavior guaranteed for `dict` starting in Python 3.7.1 parent dea4083 commit 618f930
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1253 | 1253 | | |
1254 | 1254 | | |
1255 | 1255 | | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
1256 | 1263 | | |
1257 | 1264 | | |
1258 | 1265 | | |
| |||
0 commit comments