pyo3
pyo3 copied to clipboard
Rust bindings for the Python interpreter
One of the most common merge conflicts I encounter is our CHANGELOG. Also, having to annotate the PR number at the end of the CHANGELOG message is a little fiddly....
Thanks for the great work you do on PyO3. Pybind11 has a feature called 'implicit conversions' https://pybind11.readthedocs.io/en/stable/advanced/classes.html#implicit-conversions This can be quite handy, let me give an example: ``` rust #[pyclass]...
Closes #2479
### Bug Description When creating a custom pyclass that implements the sequence protocol with pyo3 0.16.x the output type is missing something (I haven't been able to figure out exactly...
### Bug Description The [conversion table](https://pyo3.rs/v0.15.1/conversions/tables.html#argument-types) for PyMapping suggests anything that is a typing.Mapping should be able to be converted to PyMapping, this however is not the case seemly list...
This issue gathers some areas where we need to improve our test coverage. You can view pyo3's test coverage online [here](https://app.codecov.io/gh/PyO3/pyo3) or locally by following the steps [here](https://github.com/PyO3/pyo3/blob/main/Contributing.md#code-coverage) (do this...
I have found myself creating statics that are accessed only by threads that have the GIL. As such, use of a normal Mutex is unnecessary performance overhead (and this matters...
Hi, I'm deeply annoyed by the fact that if you declare a module using the `#[pyclass]` macro the module name of the class is `builtins`. I looked in the code...
The 0.14.2 guide release job failed, see https://github.com/PyO3/pyo3/runs/3278446262?check_suite_focus=true I'm pretty sure this is a bug in `actions-gh-pages` where the "latest" symlink I added in #1734 has broken it. For now...
This is an implementation of #1463 It currently provides the following macros: - `py_list!(py, [1, 2, 3]) → &PyList` - `py_tuple!(py, (1, 2, 3)) → &PyTuple` - `py_dict!(py, {"key": value})...