pyo3
pyo3 copied to clipboard
Rust bindings for the Python interpreter
Having written this fairly innocent comment in #863: > I've been wondering what happens if we renamed `PyObject` to just `Object` - I don't think the `Py` is particularly interesting...
As of right now its not possible to pickle classes created by PyO3. This feature would be invaluable for situations where some form of persistence would be desireable. As of...
It seems confusing to me to have two different attributes, `#[pyfunction]` and `#[pyfn]`, which both wrap Rust functions to create python functions. Pyo3 users need to know which applies in...
apparently it works by setting the `ob_type` member to a custom instance (the metaclass) of a class that derives from `type`.
At the moment, as #1088 notes (and also #1085), it's difficult to expose things like iterators to Python because of the restriction that `#[pyclass]` cannot take a lifetime. This restriction...
A user asked a question on Gitter just now about extending a Python class from Rust. While I think it's possible to do this by hand with a lot of...
Currently unsupported, because it depends on the base type layout. There should be ways to achieve this.
Is it possible to return different sub-classes from a function? In Rust I have an enum containing data ```rust pub enum Frame { Type, TypeResponse(u8, Version, u8), Ping(u8), Pong(u8), }...
This issue is about sub classing with overridden __init__ ; This bug prevents it. Details below. ## 🐛 Bug Reports When reporting a bug, please provide the following information. If...
Right now it is impossible to ```rust #[pyclass(extends=PyTuple)] struct Bla { // ... } ``` I'd like to do that to get a rust namedtuple like class. What would that...