Skip to content

[Doc][Python] Ensure that ipc/io documentation uses context managers instead of manually closing streams #29139

@asfimport

Description

@asfimport

At the moment, in many places we are not closing or manually invoking .close() over resources that could deal automatically with it through context managers. We should replace those manual usages of .close() with context managers in the documentation so that we get users used to go for the more robust solution that doesn't require dedicated exception handling and remembering to close things.

Reporter: Alessandro Molina / @amol-
Assignee: Alessandro Molina / @amol-

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-13476. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions