Skip to content

Commit

Permalink
add release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Aug 1, 2024
1 parent c516232 commit a9d0c4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions newsfragments/4410.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* Added bindings for `PyList_GetItemRef` on Python 3.13 and newer. Also added
`ffi::compat::PyList_GetItemRef` which re-exports the FFI binding on Python
3.13 and newer and defines a compatibility shim on older versions. This
function returns an owned reference to the item in the list and should be
preferred if the list is not known *a priori* to be shared between threads.
3 changes: 3 additions & 0 deletions newsfragments/4410.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Avoid creating temporary borrowed reference in list.get_item
bindings. Temporary borrowed references are unsafe in the free-threaded python
build if the list is shared between threads.

0 comments on commit a9d0c4a

Please sign in to comment.