pyo3
pyo3 copied to clipboard
Rust bindings for the Python interpreter
Hi all, I noticed a performance issue when extracting a `PyBytes` or a `PyByteArray` object into a `Vec`. This is an issue one can easily run into without realizing it....
`enum`s generated by Pyo3 don't actually subclass Python's `Enum`. Due to this, some attributes/methods are missing from Pyo3 enums that you would expect in Python. Additionally, `EnumType` is not the...
Since #3287 `#[new]` is now able to return `Py` to return an existing Python object (e.g. for singleton classes). In pure-python code I believe the return value of `__new__` is...
I have some code that relies on the type of the object represented `PyAny`. I'd like to have a test that confirms that the datatype of the python object is...