Commit 48c178f
committed
fix: replace
resolves #1434
Instead use [`PyList_GetItemRef()`] for python >= 3.13. Internally, this function is conditionally defined for python < 3.13.
[`PyList_GetItemRef()`] is part of the Stable ABI but also propagate errors. Whereas the previous [`PyList_GET_ITEM()`] did not do any error checking and was not part of the Stable ABI.
[`PyList_GetItemRef()`]: https://docs.python.org/3/c-api/list.html#c.PyList_GetItemRef
[`PyList_GET_ITEM()`]: https://docs.python.org/3/c-api/list.html#c.PyList_GET_ITEMPyList_GET_ITEM()
1 parent 2ea43ed commit 48c178f
1 file changed
+24
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
| |||
599 | 611 | | |
600 | 612 | | |
601 | 613 | | |
602 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
603 | 617 | | |
| 618 | + | |
604 | 619 | | |
605 | 620 | | |
606 | 621 | | |
| |||
1052 | 1067 | | |
1053 | 1068 | | |
1054 | 1069 | | |
1055 | | - | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1056 | 1073 | | |
| 1074 | + | |
1057 | 1075 | | |
1058 | 1076 | | |
1059 | 1077 | | |
| |||
1135 | 1153 | | |
1136 | 1154 | | |
1137 | 1155 | | |
1138 | | - | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1139 | 1159 | | |
| 1160 | + | |
1140 | 1161 | | |
1141 | 1162 | | |
1142 | 1163 | | |
| |||
0 commit comments