▲ 14 ▼ 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 (lemmy.world) submitted 2 years ago* (last edited 2 years ago) by SwordInStone@lemmy.world to c/python@programming.dev 9 comments fedilink hide all child comments https://docs.python.org/3/library/pathlib.html I'm creating this post mainly so that I don't forget the name again.
[–] SwordInStone@lemmy.world [S] 2 points 2 years ago sorry, I was looking for it today, which prompted me to create this post permalink fedilink source parent