Repository navigation
Commit 62b2be9
committed
Emit BUILD_LIST_FROM_ARG before GET_ITER in a non-inlined list comprehension
GET_ITER pushes the iterator and an index slot, so BUILD_LIST_FROM_ARG
after it took the index slot. The non-inlined path now emits
LOAD_FAST .0; BUILD_LIST_FROM_ARG; GET_ITER, leaving [list, iterator,
index] as the inlined path does. listcomp_build_list_from_arg_option
covers the non-inlined case.
Assisted-by: Grok
Assisted-by: Claude1 parent f1cc68e commit 62b2be9
1 file changed
Lines changed: 33 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11121 | 11121 | | |
11122 | 11122 | | |
11123 | 11123 | | |
| 11124 | + | |
| 11125 | + | |
| 11126 | + | |
| 11127 | + | |
| 11128 | + | |
11124 | 11129 | | |
11125 | 11130 | | |
11126 | 11131 | | |
11127 | 11132 | | |
11128 | 11133 | | |
11129 | | - | |
11130 | | - | |
11131 | | - | |
11132 | 11134 | | |
11133 | 11135 | | |
11134 | 11136 | | |
| |||
18025 | 18027 | | |
18026 | 18028 | | |
18027 | 18029 | | |
| 18030 | + | |
| 18031 | + | |
| 18032 | + | |
| 18033 | + | |
| 18034 | + | |
| 18035 | + | |
| 18036 | + | |
| 18037 | + | |
| 18038 | + | |
| 18039 | + | |
| 18040 | + | |
| 18041 | + | |
| 18042 | + | |
| 18043 | + | |
| 18044 | + | |
| 18045 | + | |
| 18046 | + | |
| 18047 | + | |
| 18048 | + | |
| 18049 | + | |
| 18050 | + | |
| 18051 | + | |
| 18052 | + | |
| 18053 | + | |
| 18054 | + | |
| 18055 | + | |
| 18056 | + | |
| 18057 | + | |
18028 | 18058 | | |
18029 | 18059 | | |
18030 | 18060 | | |
| |||
0 commit comments