pybind11
pybind11 copied to clipboard
Seamless operability between C++11 and Python
## Description I would like to get easier handling of `std::basic_string` and `std::basic_string_view` for `uint8_t` and `std::byte` underlying types. Those types are meant to represent raw data and thus should...
### Required prerequisites - [X] Make sure you've read the [documentation](https://pybind11.readthedocs.io). Your issue may be addressed there. - [X] Search the [issue tracker](https://github.com/pybind/pybind11/issues) and [Discussions](https:/pybind/pybind11/discussions) to verify that this hasn't...
### Required prerequisites - [X] Make sure you've read the [documentation](https://pybind11.readthedocs.io). Your issue may be addressed there. - [X] Search the [issue tracker](https://github.com/pybind/pybind11/issues) and [Discussions](https:/pybind/pybind11/discussions) to verify that this hasn't...
In https://pybind11.readthedocs.io/en/stable/advanced/misc.html#global-interpreter-lock-gil it says that gil_scoped_release and gil_scoped_acquire are available, and doesn't elaborate further. But there are some important correctness conditions related to the use of these functions: 1. Is...
i made a simple Awaitable class in c++ to support pythons async/await syntax with c++ deferred functions: ```c++ template class Awaitable : public std::enable_shared_from_this{ public: Awaitable(); Awaitable(std::future&); std::shared_ptr __iter__(); std::shared_ptr...
## Description This is based on #3719. See https://github.com/henryiii/pybind11/pull/9 too.
### Required prerequisites - [X] Make sure you've read the [documentation](https://pybind11.readthedocs.io). Your issue may be addressed there. - [X] Search the [issue tracker](https://github.com/pybind/pybind11/issues) and [Discussions](https:/pybind/pybind11/discussions) to verify that this hasn't...
## Description This fix aims to solve the issue #3776. The problem was that every non-embedded module had their own locals, which could only be accessed through the `get_local_internals` function...
### Required prerequisites - [X] Make sure you've read the [documentation](https://pybind11.readthedocs.io). Your issue may be addressed there. - [X] Search the [issue tracker](https://github.com/pybind/pybind11/issues) and [Discussions](https:/pybind/pybind11/discussions) to verify that this hasn't...
## Description Adding a nox test for PyPy upstream before their next release. I think this works on 3.7 and 3.8, though we should see if we still need our...