Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions newsfragments/5892.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add FFI definition `PyStructSequence_UnnamedField` constant on Python 3.9 and up (or 3.11 with abi3 features).
5 changes: 4 additions & 1 deletion pyo3-ffi/src/structseq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ pub struct PyStructSequence_Desc {
pub n_in_sequence: c_int,
}

// skipped PyStructSequence_UnnamedField;
extern_libpython! {
#[cfg(any(Py_3_11, all(Py_3_9, not(Py_LIMITED_API))))]
pub static PyStructSequence_UnnamedField: *const c_char;
}

extern_libpython! {
#[cfg(not(Py_LIMITED_API))]
Expand Down
Loading