Open rostan-t opened 6 days ago
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).
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
)