pitrou commented on code in PR #37797: URL: https://github.com/apache/arrow/pull/37797#discussion_r1345649861
########## docs/source/python/extending_types.rst: ########## @@ -46,6 +46,11 @@ The ``__arrow_array__`` method takes an optional `type` keyword which is passed through from :func:`pyarrow.array`. The method is allowed to return either a :class:`~pyarrow.Array` or a :class:`~pyarrow.ChunkedArray`. +.. note:: + + For a lower-level API that integrates with libraries other than PyArrow, + consider the :doc:`/format/CDataInterface/PyCapsuleInterface`. Review Comment: I'm not sure "lower-level" is really relevant here, as it's a protocol and not a public-facing API. It's more useful to point out that the PyCapsule-based interface is more general and does not imply a dependency on PyArrow. -- 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]
