mirror of
https://github.com/pybind/pybind11.git
synced 2025-03-24 01:26:42 +00:00
If a bound std::function is invoked with a bound method, the implicit bound self is lost because we use `detail::get_function` to unbox the function. This commit amends the code to use py::function and only unboxes in the special is-really-a-c-function case. This makes bound methods stay bound rather than unbinding them by forcing extraction of the c function. |
||
---|---|---|
.. | ||
pybind11 |