paleolimbot commented on code in PR #425:
URL: https://github.com/apache/arrow-nanoarrow/pull/425#discussion_r1565715320


##########
python/src/nanoarrow/iterator.py:
##########
@@ -263,6 +263,25 @@ def _binary_iter(self, offset, length):
             for start, end in zip(starts, ends):
                 yield bytes(data[start:end])
 
+    def _decimal_iter(self, offset, length):
+        from decimal import Context, Decimal
+        from sys import byteorder
+
+        storage = self._primitive_iter(offset, length)
+        precision = self._schema_view.decimal_precision
+        scaleb = Decimal(-self._schema_view.decimal_scale)

Review Comment:
   Apparently it does! 
https://github.com/python/cpython/blob/main/Lib/_pydecimal.py#L3684
   
   I'll add some comments here.



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