Skip to content

Close files alternative - #11810

Closed
mhvk wants to merge 8 commits into
astropy:mainfrom
mhvk:close-files-alternative
Closed

mhvk wants to merge 8 commits into
astropy:mainfrom
mhvk:close-files-alternative

Conversation

@mhvk

@mhvk mhvk commented Jun 2, 2021

Copy link
Copy Markdown
Contributor

Alternative to #11809, just for discussion. cc @larrybradley, @pllim, @embray

This one does the detach more explicitly in the finally clause. It still has one failing tests (which also fails in #11809)

@github-actions

github-actions Bot commented Jun 2, 2021

Copy link
Copy Markdown
Contributor

👋 Thank you for your draft pull request! Do you know that you can use [ci skip] or [skip ci] in your commit messages to skip running continuous integration tests until you are ready?

@mhvk

mhvk commented Jun 3, 2021

Copy link
Copy Markdown
Contributor Author

closing in favour of #11809 - the approach here can leave a filehandle in a state where just doing fileobj.closed will give an error.

@mhvk mhvk closed this Jun 3, 2021
@mhvk
mhvk deleted the close-files-alternative branch June 3, 2021 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants