Skip to content

Commit f326c74

Browse files
committed
Merge branch 'main' into opaque-pyobject
2 parents 2f755ae + 962a535 commit f326c74

44 files changed

Lines changed: 809 additions & 325 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/netlify-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
5252
- name: Post Netlify Preview Status to PR
5353
if: ${{ github.event.workflow_run.event == 'pull_request' }}
54-
uses: actions/github-script@v8
54+
uses: actions/github-script@v9
5555
with:
5656
github-token: ${{ secrets.GITHUB_TOKEN }}
5757
script: |

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ chrono = { version = "0.4.25", default-features = false, optional = true }
4545
chrono-tz = { version = ">= 0.10, < 0.11", default-features = false, optional = true }
4646
either = { version = "1.9", optional = true }
4747
eyre = { version = ">= 0.6.8, < 0.7", optional = true }
48-
hashbrown = { version = ">= 0.15.0, < 0.17", optional = true, default-features = false }
48+
hashbrown = { version = ">= 0.15.0, < 0.18", optional = true, default-features = false }
4949
indexmap = { version = ">= 2.5.0, < 3", optional = true }
5050
jiff-02 = { package = "jiff", version = "0.2", optional = true }
5151
num-bigint = { version = "0.4.4", optional = true }

newsfragments/5942.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add FFI definitions `PyObject_GetAIter`, `PyAIter_Check`, `PyMapping_HasKeyWithError`, `PyMapping_HasKeyStringWithError`, `PyMapping_GetOptionalItem`, `PyMapping_GetOptionalItemString`, `PySequence_ITEM`, `PySequence_Fast_GET_SIZE`, `PySequence_Fast_GET_ITEM`, and `PySequence_Fast_ITEMS`.

newsfragments/5942.removed.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Remove private FFI definitions `_PyStack_AsDict`, `_PyObject_CallNoArg`, `_PyObject_FastCall`, `_PyObject_FastCallTstate`. `_PyObject_VectorcallTstate`, `_PyObject_MakeTpCall`, `_Py_CheckFunctionResult`, `_PyObject_CallFunction_SizeT`, `_PyObject_CallMethod_SizeT`, and `_PySequence_IterSearch`.
2+
3+
Remove FFI definitions `PY_ITERSEARCH_COUNT`, `PY_ITERSEARCH_INDEX`, and `PY_ITERSEARCH_CONTAINS`.

newsfragments/5946.changed.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Removed use of the CPython-internal `_PyUnicode_COMPACT_DATA` symbol from PyO3's FFI test suite.
2+
Removed `_PySet_NextEntry` in `pyo3-ffi`; it is a CPython-internal API with no stability guarantee.
3+
Removed `_PyLong_NumBits` in `pyo3-ffi` and replaced its internal use with `int.bit_length()` for Python < 3.13 builds.

newsfragments/5949.added.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Added the following functions:
2+
3+
* PyDate_FromDate
4+
* PyDateTime_FromDateAndTime
5+
* PyDateTime_FromDateAndTimeAndFold
6+
* PyTime_FromTime
7+
* PyTime_FromTimeAndFold
8+
* PyDelta_FromDSU

newsfragments/5955.added.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* Added FFI bindings for `PyDict_SetDefaultRef` for Python 3.13 and newer and
2+
3.15 and newer in the limited API. Also added a compat shim for older Python
3+
versions.
4+
5+
* Added `PyDictMethods::set_default` and `PyDictMethods::set_default_ref` to
6+
allow atomically setting default values in a PyDict.

newsfragments/5955.changed.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
`PyCode::run` uses PyDict_SetDefaultRef instead of a critical section to ensure
2+
thread safety when it adds a reference to `__builtins__` to the globals dict.

newsfragments/5956.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use `Py_GetConstantBorrowed` for python `True` & `False` on abi3

newsfragments/5962.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use `Py_GetConstantBorrowed` for python `Ellipsis` on abi3

0 commit comments

Comments
 (0)