YSK: there is a library called pathlib with different methods for accessing files which you might like since they do not require a context manager
YSK: there is a library called pathlib with different methods for accessing files which you might like since they do not require a context manager
https://docs.python.org/3/library/pathlib.html
I'm creating this post mainly so that I don't forget the name again.
You're viewing a single thread.
View all comments
10
comments
you can also enable this rule set to remind you https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
2 0 Replyhell ye
1 0 Reply
You've viewed 10 comments.
Scroll to top