jorisvandenbossche commented on code in PR #37797:
URL: https://github.com/apache/arrow/pull/37797#discussion_r1345635699


##########
python/pyarrow/ipc.pxi:
##########
@@ -845,6 +914,19 @@ cdef class RecordBatchReader(_Weakrefable):
         return self
 
 
+cdef void pycapsule_stream_deleter(object stream_capsule):
+    cdef:
+        ArrowArrayStream* stream
+    # Do not invoke the deleter on a used/moved capsule
+    stream = <ArrowArrayStream*>cpython.PyCapsule_GetPointer(

Review Comment:
   ```suggestion
       stream = <ArrowArrayStream*>PyCapsule_GetPointer(
   ```
   
   (since you imported those functions as such as the top of the file, although 
it seems the cpython. also works)



-- 
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