mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-21 14:23:14 +08: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.