Repository navigation
Commit 5e65683
Bytecode parity phase 3
Compiler:
- Emit TO_BOOL in and/or short-circuit evaluation
- Add module-level __conditional_annotations__ cell (PEP 649)
- Only set conditional annotations for AnnAssign, not function params
- Skip __classdict__ cell when future annotations are active
- Convert list literals to tuples in for-loop iterables
- Fix cell ordering: parameters first, then alphabetical
- Fix RESUME DEPTH1: only count non-preserve_lasti except handlers
- Don't propagate __classdict__/__conditional_annotations__ freevar
through regular functions
- Fix __static_attributes__: skip implicit classmethods, scan "self"
in __new__ bodies
- Stub add_generator_stop_handler (disabled: needs async comp fix)
VM:
- Fix _varname_from_oparg: skip parameter cells in localsplus mapping
- Fix richcompare panic: return NotImplemented when slot is None1 parent e3ac1bf commit 5e65683
5 files changed
Lines changed: 73 additions & 16 deletions
File tree
- crates
- codegen/src
- snapshots
- vm/src
- builtins
- protocol
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4581 | 4581 | | |
4582 | 4582 | | |
4583 | 4583 | | |
4584 | | - | |
| 4584 | + | |
4585 | 4585 | | |
4586 | 4586 | | |
4587 | 4587 | | |
4588 | | - | |
| 4588 | + | |
| 4589 | + | |
| 4590 | + | |
| 4591 | + | |
| 4592 | + | |
| 4593 | + | |
4589 | 4594 | | |
4590 | 4595 | | |
4591 | 4596 | | |
| |||
4597 | 4602 | | |
4598 | 4603 | | |
4599 | 4604 | | |
4600 | | - | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
| 4609 | + | |
| 4610 | + | |
| 4611 | + | |
4601 | 4612 | | |
4602 | 4613 | | |
4603 | 4614 | | |
| |||
5460 | 5471 | | |
5461 | 5472 | | |
5462 | 5473 | | |
5463 | | - | |
5464 | | - | |
| 5474 | + | |
5465 | 5475 | | |
5466 | 5476 | | |
5467 | 5477 | | |
| |||
7369 | 7379 | | |
7370 | 7380 | | |
7371 | 7381 | | |
| 7382 | + | |
| 7383 | + | |
| 7384 | + | |
| 7385 | + | |
| 7386 | + | |
| 7387 | + | |
| 7388 | + | |
| 7389 | + | |
7372 | 7390 | | |
7373 | 7391 | | |
7374 | 7392 | | |
| |||
7889 | 7907 | | |
7890 | 7908 | | |
7891 | 7909 | | |
| 7910 | + | |
| 7911 | + | |
| 7912 | + | |
| 7913 | + | |
| 7914 | + | |
| 7915 | + | |
| 7916 | + | |
| 7917 | + | |
| 7918 | + | |
| 7919 | + | |
| 7920 | + | |
| 7921 | + | |
| 7922 | + | |
| 7923 | + | |
| 7924 | + | |
| 7925 | + | |
7892 | 7926 | | |
7893 | 7927 | | |
7894 | 7928 | | |
| |||
8234 | 8268 | | |
8235 | 8269 | | |
8236 | 8270 | | |
8237 | | - | |
8238 | 8271 | | |
8239 | 8272 | | |
8240 | 8273 | | |
| |||
8248 | 8281 | | |
8249 | 8282 | | |
8250 | 8283 | | |
8251 | | - | |
| 8284 | + | |
8252 | 8285 | | |
8253 | 8286 | | |
8254 | 8287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
2023 | 2026 | | |
2024 | 2027 | | |
2025 | 2028 | | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
2026 | 2040 | | |
2027 | 2041 | | |
2028 | 2042 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | | - | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
1294 | 1303 | | |
1295 | 1304 | | |
1296 | | - | |
| 1305 | + | |
1297 | 1306 | | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
1302 | 1310 | | |
1303 | 1311 | | |
1304 | 1312 | | |
1305 | 1313 | | |
1306 | 1314 | | |
1307 | 1315 | | |
1308 | | - | |
| 1316 | + | |
1309 | 1317 | | |
1310 | 1318 | | |
1311 | 1319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
| |||
0 commit comments