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


##########
python/pyarrow/io.pxi:
##########
@@ -121,6 +121,14 @@ cdef class NativeFile(_Weakrefable):
     def __exit__(self, exc_type, exc_value, tb):
         self.close()
 
+    def __repr__(self):
+        name = f"{self.__class__.__module__}.{self.__class__.__name__}"

Review Comment:
   In general those objects are exposed in the top-level `pyarrow` namespace, 
so I would maybe hardcode that here instead of using `__module__` which gives 
`pyarrow.lib` (the lib submodule is also considered private)
   
   (and same for Buffer)



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