pyo3
pyo3 copied to clipboard
Rust bindings for the Python interpreter
These are the two less controversial parts, i.e. turning anything that can be iterated into a `Vec` whether it calls itself a sequence or not and also accepting `str` where...
After #2624 felt that there was a potentially easy win here to add some documentation to explain why lifetimes aren't allowed with `#[pyclass]`.
This PR adds the integration for chrono 0.4, and it supersedes https://github.com/PyO3/pyo3/pull/2604 Most of the work here was done by @pickfire , I just adapted it to work with the...
After discussions in #2619 I think we're leaning towards preferring `nox` over `xtask` for simplicity. This moves the coverage implementation from `xtask` to `nox`, and also removes `xtask` from the...
### Bug Description We encountered a very similar sounding issue to #2032 #1623 - but "luckily" for us the crash happens quite reliably! It doesn't seem specific to tensorflow as...
Moved from https://github.com/chronotope/chrono/pull/542 What's left - [x] port tests - [ ] wait for chrono upstream to accept the changes https://github.com/chronotope/chrono/pull/812 cc @Psykopear I just pushed so that you can...
### Bug Description https://pyo3.rs/v0.17.1/class/protocols.html#mapping--sequence-types > Use the #[pyclass(sequence)] annotation to instruct PyO3 to fill the sq_length slot instead of the mp_length slot for __len__. This will help libraries such as...
### Bug Description When I ran `cargo test` command, it failed with the following errors: ``` cargo test Compiling target-lexicon v0.12.4 Compiling autocfg v1.1.0 Compiling once_cell v1.13.1 Compiling proc-macro2 v1.0.43...
### Bug Description Importing some python modules from rust causes a SIGINT signal to be ignored, even after python is no longer in scope. (I'm not sure if the problem...
Uses PEP 688 `types.Buffer` to describe `PyBuffer` in the conversion tables. Will leave as draft until PEP 688 is finalised. Closes #954