You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/08/19 09:08:22 UTC

[GitHub] [arrow] pitrou commented on a change in pull request #10957: ARROW-13476: [Doc][Python] Switch ipc/io doc to use context managers

pitrou commented on a change in pull request #10957:
URL: https://github.com/apache/arrow/pull/10957#discussion_r691929523



##########
File path: docs/source/python/ipc.rst
##########
@@ -89,10 +88,11 @@ convenience function ``pyarrow.ipc.open_stream``:
 
 .. ipython:: python
 
-   reader = pa.ipc.open_stream(buf)
-   reader.schema
-
-   batches = [b for b in reader]
+   with pa.ipc.open_stream(buf) as reader:
+         schema = reader.schema
+         batches = [b for b in reader]

Review comment:
       Uh.




-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org