Skip to content

Releases: AndrejOrsula/pyo3_bindgen

0.5.0

09 May 21:53
64c64a5
Compare
Choose a tag to compare

What's Changed

  • Bumped pyo3 to 0.21, which includes a large transition to using pyo3::Bound smart pointers (both internal and generated code). More information about breaking changes introduced by this change is mentioned below.
  • Function pyo3_embed_python_source_code() is now automatically generated when using Codegen::module_from_str() to simplify embedding of Python source code during runtime.
  • Removed macros from the default features
  • Added numpy feature for automatic mapping of numpy::ndarray

Significant API changes for the generated bindings due to pyo3 update to 0.21

  1. Calling methods of class MyClass(pyo3::PyAny) encapsulated as pyo3::Bound<'_, MyClass> is now a bit more cumbersome. It requires that use MyClassMethods; is included in the scope when such methods are used. This follows the API design of PyO3, where all methods are implemented under a trait (e.g. pyo3::types::PyAnyMethods) due to arbitrary_self_types being unstable.
  2. Passing of ::pyo3::marker::Python<'py> is no longer necessary for methods. It is extracted from self directly.

Full Changelog: 0.4.0...0.5.0

0.4.0

08 Mar 23:17
3817fc7
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.3.1...0.4.0

0.3.1

05 Mar 22:11
73556cc
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.3.0...0.3.1

0.3.0

05 Mar 21:05
24bd965
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.0...0.3.0

0.2.0

23 Jan 21:31
d2a7382
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.1.1...0.2.0

0.1.1

20 Jan 18:26
1286e28
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.1.0...0.1.1

0.1.0

20 Jan 12:49
399262e
Compare
Choose a tag to compare