Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The file that we read or write should be closed #1

Closed
skrabbe001 opened this issue Nov 26, 2021 · 1 comment
Closed

The file that we read or write should be closed #1

skrabbe001 opened this issue Nov 26, 2021 · 1 comment

Comments

@skrabbe001
Copy link

Add file.close() after file.read() and file.write(data)

@gabfv
Copy link
Owner

gabfv commented Nov 28, 2021

Not sure I need to file.close() when using a with statement :
https://www.python.org/dev/peps/pep-0343/

@gabfv gabfv closed this as completed Dec 4, 2021
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

No branches or pull requests

2 participants