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

From discussion in #1683 and #1769 - Deprecates `Python::acquire_gil`. - Makes `Python::with_gil` always acquire the GIL (removing `EnsureGIL` optimization). - ~~Makes `GILGuard::acquire_gil` an unsafe public API.~~ - Removes the drop...

In #2481 we agreed that we'll need to have a "soundness" release 0.16.6 (with drawbacks) as well as a new 0.17.0 release ASAP which offers a fixed `PyCapsule` API. I...

Not sure how possible this would be, but it would be awesome if we could give our IDEs an idea of what's going on inside a pyo3 function/class with `.pyi`...

It gets annoying `git pull` receives several hundred megabytes due to `gh-pages` branch updates. ```bash ❯ git pull remote: Enumerating objects: 23466, done. remote: Counting objects: 100% (23466/23466), done. remote:...

I'm struggling with some recursive code in pydantic-core, particularly related to wasm and pyodide, see https://github.com/samuelcolvin/pydantic-core/pull/167. It was suggested I use `Py_EnterRecursiveCall`, is there any case where this would help?...

I've read through the documentation & haven't seen an easy way to do this, although it might be possible. Sometimes you want to provide a mutable reference to a field...

needs-implementer

### Bug Description (Stemming from https://github.com/microsoft/debugpy/issues/968) I've tracked down my debugability-of-python issue to the fact that the thread state is not persisted in a thread between multiple calls to `Python::with_gil`....

documentation

Most types in `pyo3::types` have helper methods to create them easily (examples: [`PyString::new`](https://docs.rs/pyo3/latest/pyo3/types/struct.PyString.html#method.new), [`PyBool::new`](https://docs.rs/pyo3/latest/pyo3/types/struct.PyBool.html#method.new)). Is there a reason why there is no such method for `PyLong` and `PyInt` or is...

enhancement
Good First Issue
needs-implementer

Hi! This issue is going to be a summary of my prototypes to generate Python Interface files ('stub files', '.pyi files') automatically. The prototypes are available as #2379 and #2447....

This pull request adds support for mappingproxy objects. Resolves #2108