PyO3 v0.13.2 Release Notes
Release Date: 2021-02-12 // about 3 years ago-
Packaging
- ๐ Lower minimum supported Rust version to 1.41. #1421
โ Added
- Add unsafe API
with_embedded_python_interpreter
to initalize a Python interpreter, execute a closure, and finalize the interpreter. #1355 - โ Add
serde
feature which provides implementations ofSerialize
andDeserialize
forPy<T>
. #1366 - โ Add FFI definition
_PyCFunctionFastWithKeywords
on Python 3.7 and up. #1384 - Add
PyDateTime::new_with_fold()
method. #1398 - โ Add
size_hint
impls for{PyDict,PyList,PySet,PyTuple}Iterator
s. #1699
๐ Changed
prepare_freethreaded_python
will no longer register anatexit
handler to callPy_Finalize
. This resolves a number of issues with incompatible C extensions causing crashes at finalization. #1355- Mark
PyLayout::py_init
,PyClassDict::clear_dict
, andopt_to_pyobj
safe, as they do not perform any unsafe operations. #1404
๐ Fixed
- ๐ Fix support for using
r#raw_idents
as argument names in pyfunctions. #1383 - Fix typo in FFI definition for
PyFunction_GetCode
(was incorrectlyPyFunction_Code
). #1387 - Fix FFI definitions
PyMarshal_WriteObjectToString
andPyMarshal_ReadObjectFromString
as available in limited API. #1387 - ๐ Fix FFI definitions
PyListObject
and those fromfuncobject.h
as requiring non-limited API. #1387 - Fix unqualified
Result
usage inpyobject_native_type_base
. #1402 - ๐ Fix build on systems where the default Python encoding is not UTF-8. #1405
- ๐ Fix build on mingw / MSYS2. #1423