@SwordInStone to [email protected] • edit-21 month agoYSK: there is a library called pathlib with different methods for accessing files which you might like since they do not require a context manager message-square10arrow-up126arrow-down114file-text
arrow-up112arrow-down1message-squareYSK: there is a library called pathlib with different methods for accessing files which you might like since they do not require a context manager @SwordInStone to [email protected] • edit-21 month agomessage-square10file-text
https://docs.python.org/3/library/pathlib.html I’m creating this post mainly so that I don’t forget the name again.
minus-square@[email protected]linkfedilink4•1 month agoI subconsciously replace os.path with pathlib whenever touching any module for a refactor.
I subconsciously replace
os.path
withpathlib
whenever touching any module for a refactor.