pyo3 icon indicating copy to clipboard operation
pyo3 copied to clipboard

Rust bindings for the Python interpreter

Results 514 pyo3 issues
Sort by recently updated
recently updated
newest added

- [ ] Overhead of conversions (i.e. `PyList` vs `Vec` etc.) - [ ] String `intern!` - [ ] `Vec` becoming `list[int]` (and thus being very slow), usage of `Cow`...

Good First Issue

The idea of this PR is to move exception creation out of the Python interpreter (where we can't control it, e.g. all the special cases in #4412), into our own...

This PR adds a `TryExtend` trait that is similar to the `std::iter::Extend` trait except it is failable. Currently implemented for `PyList` & `PyDict`, including some optimised specializations on nightly.

I just managed to upgrade to the latest PyO3 and I was immediately bitten by the new `()` to empty tuple conversion. I was especially confused because there is a...

enhancement

Implement a subset of Python expr AST Adds to the "name" construct a kind to distinguish global (global name that does not need to be resolved against the current module)...

This attempts solving #3059 by changing the generated `IntoPyObject` implementation for simple enums. This lazily stores the instances in a static array and creates them on first access. This solves...

This cleans up the handling of the "self" parameter, particularly inside `async` functions, by using our `PyClassGuard(Mut)` types rather than custom owning types used just in the coroutine functions. This...

PR for issue #5416 This introduces a new `#[pyclass]` attribute called `auto_new`, where `set_all` is required to be used alongside it. It automatically generates a `#[new]` function for this class,...

Uses a hack to get const specialization working Closes #5645

The following code does not compile with the `experimental-async` feature enabled: ```rust #[pyclass] struct Value(i32); #[pymethods] impl Value { #[new] fn new(x: i32) -> Self { Self(x) } } #[pyfunction]...