Commit f8fc1c5
committed
gh-115754: Get singletons by function calls in lmited C API 3.13
In the limited C API version 3.13, getting Py_None, Py_False,
Py_True, Py_Ellipsis and Py_NotImplemented singletons is now
implemented as function calls at the stable ABI level to hide
implementation details. Getting these constants still return borrowed
references.1 parent 729bfb3 commit f8fc1c5
File tree
9 files changed
+73
-8
lines changed- Doc/whatsnew
- Include
- Misc
- NEWS.d/next/C API
- Objects
9 files changed
+73
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1645 | 1645 | | |
1646 | 1646 | | |
1647 | 1647 | | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
1648 | 1653 | | |
1649 | 1654 | | |
1650 | 1655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
1073 | | - | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1074 | 1080 | | |
1075 | 1081 | | |
1076 | 1082 | | |
| |||
1084 | 1090 | | |
1085 | 1091 | | |
1086 | 1092 | | |
1087 | | - | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
1088 | 1100 | | |
1089 | 1101 | | |
1090 | 1102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2496 | 2496 | | |
2497 | 2497 | | |
2498 | 2498 | | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6592 | 6592 | | |
6593 | 6593 | | |
6594 | 6594 | | |
6595 | | - | |
6596 | 6595 | | |
| 6596 | + | |
| 6597 | + | |
| 6598 | + | |
6597 | 6599 | | |
6598 | 6600 | | |
6599 | 6601 | | |
6600 | 6602 | | |
6601 | 6603 | | |
6602 | 6604 | | |
6603 | | - | |
6604 | 6605 | | |
6605 | 6606 | | |
6606 | 6607 | | |
6607 | 6608 | | |
| 6609 | + | |
| 6610 | + | |
| 6611 | + | |
| 6612 | + | |
| 6613 | + | |
| 6614 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2920 | 2920 | | |
2921 | 2921 | | |
2922 | 2922 | | |
| 2923 | + | |
| 2924 | + | |
2923 | 2925 | | |
2924 | 2926 | | |
2925 | 2927 | | |
| |||
2970 | 2972 | | |
2971 | 2973 | | |
2972 | 2974 | | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
0 commit comments