paleolimbot commented on code in PR #366:
URL: https://github.com/apache/arrow-nanoarrow/pull/366#discussion_r1463853681
##########
python/src/nanoarrow/_lib.pyx:
##########
@@ -478,6 +593,130 @@ cdef class CSchemaView:
def __repr__(self):
return _lib_utils.schema_view_repr(self)
+
+cdef class CSchemaBuilder:
+ cdef CSchema c_schema
+ cdef ArrowSchema* _ptr
+
+ def __cinit__(self, CSchema schema):
Review Comment:
That's handled by the `CSchema` `_base` member (which is usually a PyCapsule
that implements the logic you described). Here, the strong reference to the
Python object is what I'm relying on to keep the underlying `ArrowSchema` alive.
--
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]