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...
## Issue description error C2683: 'dynamic_cast': 'base' is not a polymorphic type If base derives from std::enable_shared_from_this, pybind11 uses dynamic_cast, even if type is not polymorphic. ## Reproducible example code...
### 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...
### 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 Resolves #1773 as an alternative / less disruptive approach Drawing from https://github.com/robotlocomotion/drake/pull/14898 ## Suggested changelog entry: ```rst iterable_t added as a simple pytype ```
### 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 Adds explicit way to denote a `is_generic_type`, which is effectively bullet point (1) from the docs: https://pybind11.readthedocs.io/en/stable/advanced/cast/index.html Permits distinction from bullet points (2) and (3) ## Suggested changelog...
## Description This pull request changes the docstring generation so that all function signatures are prepended to the docstring of an overloaded function, instead of the generic signature that is...
I have found the pybind11 documentation to be not so great for quickly trying to figure out "how the heck do I get from type A to type B". So...