Repository navigation
Commit e68658a
authored
Emit BUILD_LIST_FROM_ARG before GET_ITER in a non-inlined list comprehension (#9821)
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 9f6a743 commit e68658a
1 file changed
Lines changed: 33 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11117 | 11117 | | |
11118 | 11118 | | |
11119 | 11119 | | |
| 11120 | + | |
| 11121 | + | |
| 11122 | + | |
| 11123 | + | |
| 11124 | + | |
11120 | 11125 | | |
11121 | 11126 | | |
11122 | 11127 | | |
11123 | 11128 | | |
11124 | 11129 | | |
11125 | | - | |
11126 | | - | |
11127 | | - | |
11128 | 11130 | | |
11129 | 11131 | | |
11130 | 11132 | | |
| |||
18021 | 18023 | | |
18022 | 18024 | | |
18023 | 18025 | | |
| 18026 | + | |
| 18027 | + | |
| 18028 | + | |
| 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 | + | |
18024 | 18054 | | |
18025 | 18055 | | |
18026 | 18056 | | |
| |||
0 commit comments