pitrou opened a new issue, #37062:
URL: https://github.com/apache/arrow/issues/37062

   ### Describe the enhancement requested
   
   [pybind11](https://pybind11.readthedocs.io/) allows defining custom type 
casters to translate between C++ classes and Python objects:
   https://pybind11.readthedocs.io/en/stable/advanced/cast/custom.html
   
   We already provide a [C++ 
API](https://arrow.apache.org/docs/python/integration/extending.html) to wrap 
and unwrap PyArrow objects from/to `PyObject` pointers. It would probably nicer 
to pybind11 users if we also provided a more automated facility.
   
   A draft implementation of some type casters was done by @timkpaine here:
   
https://github.com/timkpaine/arrow-cpp-python-nocopy/blob/main/src/apn-python/caster.hpp
   
   
   ### Component(s)
   
   Python


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to