Boost.Python: Wrap functions to release the GIL
Exposing functors as methods is not officially supported. The supported approach would be to expose a non-member function that delegates to the member-function. However, this can result in a large amount of boilerplate code. As best as I can tell, Boost.Python’s implementation does not explicitly preclude functors, as it allows for instances of python::object to … Read more