milesgranger commented on PR #13821:
URL: https://github.com/apache/arrow/pull/13821#issuecomment-1210143910

   > But in the case the user passes an file object, we should maybe not close 
it? (while such a PythonFile object will pass through a close() call to the 
underlying file object)
   
   So this would imply calling `ParquetFile.close` would also not close the 
passed file? So my second example would be this?
   ```python
   p = pq.ParquetFile(buf)
   table = p.read()
   assert buf.closed is False
   
   p.close()  # In the situation of a passed in open file object, this call 
would mean nothing, right?
   assert buf.closed is False
   ```
   


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