Repository navigation
Commit f15999d
* Push NULL and None in GET_AWAITABLE
Every await site compiled to GET_AWAITABLE; PUSH_NULL; LOAD_CONST None;
SEND. GET_AWAITABLE is always followed by that pair, so let it push
(iter, NULL, None) itself. `await f()` now compiles to
CALL; GET_AWAITABLE; SEND, saving two dispatches per await.
The tier-2 optimizer gets an override so the NULL and None slots are
known constants.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add NEWS entry
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ec912e7 commit f15999d
14 files changed
Lines changed: 57 additions & 33 deletions
File tree
- Doc/library
- Include/internal
- Lib/test
- Misc/NEWS.d/next/Core_and_Builtins
- Modules/_testinternalcapi
- Python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
| 820 | + | |
| 821 | + | |
821 | 822 | | |
822 | 823 | | |
823 | 824 | | |
| |||
833 | 834 | | |
834 | 835 | | |
835 | 836 | | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
836 | 841 | | |
837 | 842 | | |
838 | 843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| |||
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
316 | | - | |
| 317 | + | |
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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 | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
619 | | - | |
620 | 618 | | |
621 | 619 | | |
622 | 620 | | |
| |||
632 | 630 | | |
633 | 631 | | |
634 | 632 | | |
635 | | - | |
636 | | - | |
637 | 633 | | |
638 | 634 | | |
639 | 635 | | |
| |||
647 | 643 | | |
648 | 644 | | |
649 | 645 | | |
650 | | - | |
| 646 | + | |
651 | 647 | | |
652 | 648 | | |
653 | 649 | | |
654 | 650 | | |
655 | 651 | | |
656 | | - | |
657 | | - | |
658 | 652 | | |
659 | 653 | | |
660 | 654 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
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 | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
1652 | | - | |
| 1652 | + | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | 1655 | | |
1656 | 1656 | | |
| 1657 | + | |
| 1658 | + | |
1657 | 1659 | | |
1658 | 1660 | | |
1659 | 1661 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
622 | | - | |
623 | 621 | | |
624 | 622 | | |
625 | 623 | | |
| |||
5167 | 5165 | | |
5168 | 5166 | | |
5169 | 5167 | | |
5170 | | - | |
5171 | | - | |
5172 | 5168 | | |
5173 | 5169 | | |
5174 | 5170 | | |
| |||
5312 | 5308 | | |
5313 | 5309 | | |
5314 | 5310 | | |
5315 | | - | |
5316 | | - | |
5317 | 5311 | | |
5318 | 5312 | | |
5319 | 5313 | | |
| |||
5349 | 5343 | | |
5350 | 5344 | | |
5351 | 5345 | | |
5352 | | - | |
5353 | | - | |
5354 | 5346 | | |
5355 | 5347 | | |
5356 | 5348 | | |
| |||
5364 | 5356 | | |
5365 | 5357 | | |
5366 | 5358 | | |
5367 | | - | |
5368 | | - | |
5369 | 5359 | | |
5370 | 5360 | | |
5371 | 5361 | | |
| |||
5552 | 5542 | | |
5553 | 5543 | | |
5554 | 5544 | | |
5555 | | - | |
5556 | | - | |
5557 | 5545 | | |
5558 | 5546 | | |
5559 | 5547 | | |
| |||
0 commit comments