Skip to content

Conversation

@rudolfbyker
Copy link

open(...).read(...) opens the file but does not close it

Path(...).read_text() opens the file, reads the content and closes it properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant