PyO3 v0.7.0 Release Notes

Release Date: 2019-05-26 // almost 5 years ago
  • โž• Added

    • PyPy support by omerbenamram in #393
    • Have PyModule generate an index of its members (__all__ list).
    • Allow slf: PyRef<T> for pyclass(#419)
    • Allow to use lifetime specifiers in pymethods
    • Add marshal module. #460

    ๐Ÿ”„ Changed

    • Python::run returns PyResult<()> instead of PyResult<&PyAny>.
    • Methods decorated with #[getter] and #[setter] can now omit wrapping the result type in PyResult if they don't raise exceptions.

    ๐Ÿ›  Fixed

    • type_object::PyTypeObject has been marked unsafe because breaking the contract type_object::PyTypeObject::init_type can lead to UB.
    • Fixed automatic derive of PySequenceProtocol implementation in #423.
    • Capitalization & better wording to README.md.
    • Docstrings of properties is now properly set using the doc of the #[getter] method.
    • Fixed issues with pymethods crashing on doc comments containing double quotes.
    • PySet::new and PyFrozenSet::new now return PyResult<&Py[Frozen]Set>; exceptions are raised if the items are not hashable.
    • Fixed building using venv on Windows.
    • PyTuple::new now returns &PyTuple instead of Py<PyTuple>.
    • Fixed several issues with argument parsing; notable, the *args and **kwargs tuple/dict now doesn't contain arguments that are otherwise assigned to parameters.