Re: Arrow C Data Interface

2020-10-20 Thread Antoine Pitrou
gt;> Here's what I mean: with the python buffer protocol, i can create a new type >> and set its >> `tp_as_buffer` field to a `PyBufferProcs` structure. This way any other >> library can call >> `PyObject_CheckBuffer()` on my object to check whether or not it supports &g

Re: Arrow C Data Interface

2020-10-19 Thread Wes McKinney
CheckBuffer()` on my object to check whether or not it supports the > buffer interface, > and then `PyObject_GetBuffer()` to use that interface. > > I could not find the corresponding mechanisms in the Arrow C data interface. > For example, consider the "Exporting a simple

Arrow C Data Interface

2020-10-19 Thread Pasha Stetsenko
ce. I could not find the corresponding mechanisms in the Arrow C data interface. For example, consider the "Exporting a simple int32 array" tutorial in the article above. After creating `export_int32_type()`, `release_int32_type()`, `export_int32_array()`, `release_int32_array()` --