WillAyd commented on code in PR #391:
URL: https://github.com/apache/arrow-nanoarrow/pull/391#discussion_r1510432110
##########
python/src/nanoarrow/_lib.pyx:
##########
@@ -766,6 +766,10 @@ cdef class CSchemaView:
self._nullable = schema._ptr.flags & ARROW_FLAG_NULLABLE
self._map_keys_sorted = schema._ptr.flags & ARROW_FLAG_MAP_KEYS_SORTED
+ @property
+ def layout(self):
+ return CLayout(self, <uintptr_t>&self._schema_view.layout)
Review Comment:
May or may not be an issue, but I think the canonical way to pass pointers
via an integral value in CPython is to use the functions `PyLong_AsVoidPtr` and
`PyLong_FromVoidPtr`
--
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]