You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In free-threaded build, importing pydantic_core currently results in a segmentation fault. PyO3 v0.23 introduces support for free-threaded Python and addresses this issue. Is there any short-term plan to migrate to PyO3 0.23?
Yes, I was testing PyO3 0.23 (when it was just a git branch) in #1450 and plan to proceed further with that upgrade this week.
There is potentially additional work required beyond your list to actually make free-threaded support ok, both here and in pydantic (where there are a bunch of caches which may or may not be thread-safe).
PyO3 has now been bumped but there's a build failure on aarch64 on main. I'm trying to identify the cause. Before we can call free-threaded Python supported we should probably add extensive testing here and downstream in the pydantic main Python repo. I think this is realistically a Pydantic 2.11 feature cc @pydantic/oss
In free-threaded build, importing
pydantic_core
currently results in a segmentation fault. PyO3 v0.23 introduces support for free-threaded Python and addresses this issue. Is there any short-term plan to migrate to PyO3 0.23?Currently I see the following blockers:
SerializationCallable
Sync
, which isn't because ofCollectWarnings
andSerRecursionState
containRefCells
IntoPy
/ToPyObject
byIntoPyObject
*_bound
methods,into_py
/to_object
)The text was updated successfully, but these errors were encountered: