jorisvandenbossche commented on code in PR #117:
URL: https://github.com/apache/arrow-nanoarrow/pull/117#discussion_r1231935807


##########
python/nanoarrow/_lib.pyx:
##########
@@ -730,9 +761,13 @@ cdef class ArrayViewBuffers:
     cdef ArrayView _array_view
     cdef int64_t _length
 
-    def __init__(self, ArrayView array_view):
+    def __cinit__(self, ArrayView array_view):
         self._array_view = array_view
-        self._length = array_view._array._ptr.n_buffers
+        self._length = 3

Review Comment:
   Thanks for the explanation! And yes, seeing this code here, adding 
`n_buffers` to the view object might be useful.



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