Skip to content

Commit bd61239

Browse files
wjones127raulcd
authored andcommitted
GH-35531: [Python] C Data Interface PyCapsule Protocol (#37797)
### Rationale for this change ### What changes are included in this PR? * A new specification for Arrow PyCapsules and related dunder methods * Implementing the dunder methods for `DataType`, `Field`, `Schema`, `Array`, `RecordBatch`, `Table`, and `RecordBatchReader`. ### Are these changes tested? Yes, I've added various roundtrip tests for each of the types. ### Are there any user-facing changes? This introduces some new APIs and documents them. * Closes: #34031 * Closes: #35531 Authored-by: Joris Van den Bossche <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
1 parent 1b3f498 commit bd61239

13 files changed

+1177
-11
lines changed

docs/source/format/CDataInterface.rst

+11
Original file line numberDiff line numberDiff line change
@@ -990,3 +990,14 @@ adaptation cost.
990990

991991

992992
.. _Python buffer protocol: https://www.python.org/dev/peps/pep-3118/
993+
994+
Language-specific protocols
995+
===========================
996+
997+
Some languages may define additional protocols on top of the Arrow C data
998+
interface.
999+
1000+
.. toctree::
1001+
:maxdepth: 1
1002+
1003+
CDataInterface/PyCapsuleInterface

0 commit comments

Comments
 (0)