-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PyList_GetItemRef and use it in list.get_item #4410
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Just a few small observations to round this one off...
a9d0c4a
to
a0b87d5
Compare
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
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.