Skip to content

Conversation

@nvaytet
Copy link
Member

@nvaytet nvaytet commented Oct 6, 2025

No description provided.

" )"
" )\n",
" # Close the file after writing\n",
" f.close()"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you use a context manager instead? It looks like this is used in only one cell.

@nvaytet nvaytet merged commit 52725c6 into main Oct 7, 2025
4 checks passed
@nvaytet nvaytet deleted the close-file-mcstastonexus branch October 7, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants