Releases
v0.5.0
Added
#[pyclass]
objects can now be returned from rust functions
PyComplex
by kngwyu in #226
PyDict::from_sequence()
, equivalent to dict([(key, val), ...])
Bindings for the datetime
standard library types: PyDate
, PyTime
, PyDateTime
, PyTzInfo
, PyDelta
with associated ffi
types, by pganssle #200 .
PyString
, PyUnicode
, and PyBytes
now have an as_bytes()
method that returns &[u8]
.
PyObjectProtocol::get_type_ptr()
by ijl in #242
Removed
Removed most entries from the prelude. The new prelude is small and clear.
Slowly removing specialization uses
PyString
, PyUnicode
, and PyBytes
no longer have a data()
method
(replaced by as_bytes()
) and PyStringData
has been removed.
Changed
Removes the types from the root module and the prelude. They now live in pyo3::types
instead.
All exceptions are consturcted with py_err
instead of new
, as they return PyErr
and not Self
.
as_mut
and friends take and &mut self
instead of &self
ObjectProtocol::call
now takes an Option<&PyDict>
for the kwargs instead of an IntoPyDictPointer
.
IntoPyDictPointer
was replace by IntoPyDict
which doesn't convert PyDict
itself anymore and returns a PyDict
instead of *mut PyObject
.
PyTuple::new
now takes an IntoIterator
instead of a slice
Updated to syn 0.15
Splitted PyTypeObject
into PyTypeObject
without the create method and PyTypeCreate
with requires PyObjectAlloc<Self> + PyTypeInfo + Sized
.
Ran cargo edition --fix
which prefixed path with crate::
for rust 2018
Renamed async
to pyasync
as async will be a keyword in the 2018 edition.
Starting to use NonNull<*mut PyObject>
for Py and PyObject by ijl #260
Fixed
Added an explanation that the GIL can temporarily be released even while holding a GILGuard.
Lots of clippy errors
Fix segfault on calling an unknown method on a PyObject
Work around a bug in the rust compiler by kngwyu #252
Fixed a segfault with subclassing pyo3 create classes and using __class__
by kngwyu #263
Removed
The pyobject_extract macro
You can’t perform that action at this time.