-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |