This patch contains several fixes for stability of the PyO3 0.28.x series:
Python::attachandPython::try_attachwill no longer return before the thread initializing the interpreter has finished runnningsite.pywhen using theauto-initializefeature.- Fix unsoundness in
PyBytesWriter::write_vectoredwhen targeting the Python 3.15 prerelease interpreter. - Fix possible deadlock in
.into_pyobject()implementation for C-like#[pyclass]enums.
A couple of edge cases causing compile failures were also fixed.
Thank you to the following contributors for the improvements:
@alex
@bschoenmaeckers
@chirizxc
@davidhewitt
@Embers-of-the-Fire
@Icxolu
@maurosilber
@ngoldbaum