Commit db088ec
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 db088ec
1 file changed
+23
-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 | + | |
49 | 60 | | |
50 | 61 | | |
51 | 62 | | |
| |||
599 | 610 | | |
600 | 611 | | |
601 | 612 | | |
602 | | - | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
603 | 616 | | |
| 617 | + | |
604 | 618 | | |
605 | 619 | | |
606 | 620 | | |
| |||
1052 | 1066 | | |
1053 | 1067 | | |
1054 | 1068 | | |
1055 | | - | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1056 | 1072 | | |
| 1073 | + | |
1057 | 1074 | | |
1058 | 1075 | | |
1059 | 1076 | | |
| |||
1135 | 1152 | | |
1136 | 1153 | | |
1137 | 1154 | | |
1138 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
1139 | 1158 | | |
| 1159 | + | |
1140 | 1160 | | |
1141 | 1161 | | |
1142 | 1162 | | |
| |||
0 commit comments