Files
pybind11/tests/test_callbacks.py
Matthias Klumpp 5a5f21deb6 fix: Invert input/output context if a Python function is called from C++ (#6055)
When the Callable itself is an input (parameter) to a C++ function, its
arguments are outputs (C++ passes them to the Python callback), and vice
versa.
Therefore, we must invert them if C++ calls a Python function, but keep
them the same in the other direction.
2026-05-16 11:28:05 -07:00

7.8 KiB