Add PyList_GetItemRef and use it in list.get_item#4410
Add PyList_GetItemRef and use it in list.get_item#4410davidhewitt merged 6 commits intoPyO3:mainfrom
Conversation
davidhewitt
left a comment
There was a problem hiding this comment.
Thanks! Just a few small observations to round this one off...
a9d0c4a to
a0b87d5
Compare
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
davidhewitt
left a comment
There was a problem hiding this comment.
Looks great, thanks very much! 👍
|
Hmm the debug builds failing on 3.12. If I had to guess, it's an issue in the definition of |
|
The debug build is hitting an assert inside CPython, running Separately, it looks like there have also been some upstream changes for subinterpreters in 3.13. that aren't captured in this file (the module is still private and named |
|
(this is on Details |
|
Odd, if I go back to a version of PyO3 from last month the issue is still there on the debug python build, so it's not a new problem. I have no idea why it's suddenly showing up in CI. |
|
The bug with |
* Add PyList_GetItemRef bindings and compat shim * Use PyList_GetItemRef in list.get_item() * add release notes * apply code review comments * Update newsfragments/4410.added.md Co-authored-by: David Hewitt <mail@davidhewitt.dev> * apply `all()` doc cfg hints --------- Co-authored-by: David Hewitt <mail@davidhewitt.dev>
* Add PyList_GetItemRef bindings and compat shim * Use PyList_GetItemRef in list.get_item() * add release notes * apply code review comments * Update newsfragments/4410.added.md Co-authored-by: David Hewitt <mail@davidhewitt.dev> * apply `all()` doc cfg hints --------- Co-authored-by: David Hewitt <mail@davidhewitt.dev>
* Add PyList_GetItemRef bindings and compat shim * Use PyList_GetItemRef in list.get_item() * add release notes * apply code review comments * Update newsfragments/4410.added.md Co-authored-by: David Hewitt <mail@davidhewitt.dev> * apply `all()` doc cfg hints --------- Co-authored-by: David Hewitt <mail@davidhewitt.dev>
Refs #4265 #4355
See the C API docs.
Both the new shim and the bindings to the CPython C API on 3.13 should be covered by existing tests in PyO3.