pybind11
pybind11 copied to clipboard
Seamless operability between C++11 and Python
### 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 WIP: Follow-on to PR #4762. Companion branch: https://github.com/google/pywrapcc/pull/30079 Major things to do: * Catch all divergence issues in `all_type_info_populate()` (https://github.com/pybind/pybind11/pull/4762#issuecomment-1799427038). * Avoid killing process when divergence is detected:...
## Description tl;dr: `pybind11 --includes` returns invalid arguments when the project's directory contains spaces. When you build an extension manually, the [docs](https://pybind11.readthedocs.io/en/stable/compiling.html#building-manually) suggest this command: `c++ ... $(python3 -m pybind11...
## Description Demo: `return_value_policy::copy` ignored after a Python object was created already with `return_value_policy::reference_internal`. Back-ported from pywrapcc test_class_sh_property_stl.cpp,py ## Suggested changelog entry: ```rst ```
Apparently, Python >= 3.5 supports "multi-phase initialization", allowing for sub-interpreters to be used: https://docs.python.org/3/c-api/module.html#multi-phase-initialization Something tells me this might also be relevant to #1558? (@EricCousineau-TRI might be interested?) Something to...
### 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 our code, an enumeration needs to be wrapped in multiple modules. The entire code is statically linked into a single executable. Despite specifying py::module_local() for the enumeration binding, the...
TLDR ------- Docstings of overloading functions may break "consistent indentation", which is required for the docstring to be parsed by `sphinx` (or `help()`) correctly if the docstring contains indentation. In...
## Description Modifies the base type caster to ensure that python instances don't die when passed to C++. The shared_ptr is always given to C++ code, so we construct a...
Help is needed to diagnose and fix leak diagnostics that suddenly appeared due to unknown changes in the environment ("bit rot"). * Last successful run: https://github.com/pybind/pybind11/actions/runs/6491427154/job/17628733824 (Thu, 12 Oct 2023...